Esempio n. 1
0
 public void Setup()
 {
     _algo = new HashmapsAlgorithms();
 }
Esempio n. 2
0
        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]);
        }