using System; using NUnit.Framework; using System.Collections.Generic; namespace Algorithms.Tests.Strings { public class Trie { static object[] TestCasesForTrie = { new object[] { new List>() { new Tuple("insert", "allure"), new Tuple("search", "allure"), new Tuple("search", "cow"), new Tuple("search", "all"), new Tuple("insert", "all"), new Tuple("search", "all") }, new List() { true, false, false, true} }, }; [TestCaseSource(nameof(TestCasesForTrie))] public void TestTrie_ShouldGetExpectedResult(List> operations, List expected) { List result = Algorithms.Strings.TrieTester.TestTrie(operations); Assert.AreEqual(expected, result); } } }