Exemple #1
0
        public void StraightTest5()
        {
            string      input = "bbb", sample = "aaabbbssss";
            AnagramTool obj = new AnagramTool();

            Assert.AreEqual <bool>(true, obj.AnagramStrStr(input, sample));
        }
Exemple #2
0
        public void StraightTest3()
        {
            string      input = "bag", sample = "grad";
            AnagramTool obj = new AnagramTool();

            Assert.AreEqual <bool>(false, obj.AnagramStrStr(input, sample));
        }
Exemple #3
0
        public void StraightTest4()
        {
            string      input = "bag", sample = "gabish";
            AnagramTool obj = new AnagramTool();

            Assert.AreEqual <bool>(true, obj.AnagramStrStr(input, sample));
        }
Exemple #4
0
        public void StraightTest2()
        {
            string      input = "nod", sample = "done";
            AnagramTool obj = new AnagramTool();

            Assert.AreEqual <bool>(true, obj.AnagramStrStr(input, sample));
        }