<commit_before>﻿using System;

using Xunit;
using Xunit.Extensions;

namespace AhoCorasick.Net.Tests
{
    public class AhoCorasickTreeTests
    {
        [Theory]
        [InlineData(null, typeof(ArgumentNullException))]
        [InlineData(new string[] { }, typeof(ArgumentException))]
        public void InvalidKeywords(string[] keywords, Type exceptionType)
        {
            Assert.Throws(exceptionType, () => new AhoCorasickTree(keywords));
        }

        [Fact]
        public void CanCreate()
        {
            var sut = new AhoCorasickTree(new[] { "ab", "ab" });
        }

        [Theory]
        [InlineData("d", false)]
        [InlineData("bce", false)]
        [InlineData("bcd", true)]
        [InlineData("abcd", true)]
        public void Contains(string str, bool expected)
        {
            var sut = new AhoCorasickTree(new[] { "ab", "abc", "bcd" });
            Assert.Equal(expected, sut.Contains(str));
        }

        [Fact]
        public void Performance()
        {


        }
    }
}<commit_msg>Change Tests layout<commit_after>﻿using System;

using Xunit;
using Xunit.Extensions;

namespace AhoCorasick.Net.Tests
{
    public class AhoCorasickTreeTests
    {
        [Fact]
        public void CanCreate()
        {
            var sut = new AhoCorasickTree(new[] { "ab", "ab" });
        }

        [Theory]
        [InlineData("d", false)]
        [InlineData("bce", false)]
        [InlineData("bcd", true)]
        [InlineData("abcd", true)]
        public void Contains(string str, bool expected)
        {
            var sut = new AhoCorasickTree(new[] { "ab", "abc", "bcd" });
            Assert.Equal(expected, sut.Contains(str));
        }

        [Theory]
        [InlineData(null, typeof(ArgumentNullException))]
        [InlineData(new string[] { }, typeof(ArgumentException))]
        public void InvalidKeywords(string[] keywords, Type exceptionType)
        {
            Assert.Throws(exceptionType, () => new AhoCorasickTree(keywords));
        }

        [Fact]
        public void Performance()
        {
        }
    }
}
{'fraction_non_alphanumeric': 0.12989493791786055, 'fraction_numerical': 0.0, 'mean_word_length': 2.131539611360239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6714836', 'n_tokens_mistral': 633, 'n_tokens_neox': 625, 'n_words': 130}