public void Arguments_Are_Equal() { AnagramsClass anagrams = new AnagramsClass(); NUnit.Framework.Assert.AreEqual(anagrams.Check("moro", "moro"), true); }
public void Arguments_Same_Lengths_Non_Anagrams() { AnagramsClass anagrams = new AnagramsClass(); NUnit.Framework.Assert.AreEqual(anagrams.Check("arroz", "cosas"), false); }
public void Both_Arguments_Null() { AnagramsClass anagrams = new AnagramsClass(); NUnit.Framework.Assert.That(() => anagrams.Check(null, null), Throws.ArgumentNullException); }
public void Arguments_Different_Lengths() { AnagramsClass anagrams = new AnagramsClass(); NUnit.Framework.Assert.AreEqual(anagrams.Check("rosita", "rosa"), false); }
public void Second_Argument_Null() { AnagramsClass anagrams = new AnagramsClass(); NUnit.Framework.Assert.That(() => anagrams.Check("roma", null), Throws.ArgumentNullException); }