예제 #1
0
        public void AnagramConstructor_CreatesInstanceOfAnagram_Anagram()
        {
            List <string> tempList = new List <string> {
                "beer", "beard"
            };
            Anagram newAnagram = new Anagram("Test", tempList);

            Assert.AreEqual(typeof(Anagram), newAnagram.GetType());
        }
예제 #2
0
        public void AnagramConstructor_CreatesInstanceOfAnagram_Anagram()
        {
            List <string> listForConstructor = new List <string> {
            };

            listForConstructor.Add("aaaa");
            listForConstructor.Add("bbbb");

            Anagram newAnagram = new Anagram("test", listForConstructor);

            Assert.AreEqual(typeof(Anagram), newAnagram.GetType());
        }
예제 #3
0
        public void WordConstructor_CreatesInstanceOfWord_Word()
        {
            Anagram newAnagram = new Anagram("test");

            Assert.AreEqual(typeof(Anagram), newAnagram.GetType());
        }
예제 #4
0
        public void AnagramConstructor_CreatesInstanceOfAnagram_Anagram()
        {
            Anagram newAnagram = new Anagram("");

            Assert.AreEqual(typeof(Anagram), newAnagram.GetType());
        }