Пример #1
0
        public void Arguments_Are_Equal()
        {
            AnagramsClass anagrams = new AnagramsClass();

            NUnit.Framework.Assert.AreEqual(anagrams.Check("moro", "moro"), true);
        }
Пример #2
0
        public void Arguments_Same_Lengths_Non_Anagrams()
        {
            AnagramsClass anagrams = new AnagramsClass();

            NUnit.Framework.Assert.AreEqual(anagrams.Check("arroz", "cosas"), false);
        }
Пример #3
0
        public void Both_Arguments_Null()
        {
            AnagramsClass anagrams = new AnagramsClass();

            NUnit.Framework.Assert.That(() => anagrams.Check(null, null), Throws.ArgumentNullException);
        }
Пример #4
0
        public void Arguments_Different_Lengths()
        {
            AnagramsClass anagrams = new AnagramsClass();

            NUnit.Framework.Assert.AreEqual(anagrams.Check("rosita", "rosa"), false);
        }
Пример #5
0
        public void Second_Argument_Null()
        {
            AnagramsClass anagrams = new AnagramsClass();

            NUnit.Framework.Assert.That(() => anagrams.Check("roma", null), Throws.ArgumentNullException);
        }