コード例 #1
0
ファイル: HashmapUnitTest.cs プロジェクト: sanjug01/Tests
        public void Test_StringDecompositions()
        {
            const string sentence = "amanaplanacanal";

            string[] words = new string[] { "ana", "can", "apl" };

            HashmapsAlgorithms algorithms = new HashmapsAlgorithms();

            int[] result = algorithms.StringDecompositions(sentence, words);

            Assert.AreEqual(1, result.Length);
            Assert.AreEqual(4, result[0]);
        }
コード例 #2
0
ファイル: HashmapUnitTest.cs プロジェクト: sanjug01/Tests
 public void Setup()
 {
     _algo = new HashmapsAlgorithms();
 }