public void AnagramCheckFalseTest() { bool expected = false; bool actual = AnagramMethod.AnagramCheck("Stockholm", "Stokholm"); Assert.AreEqual(expected, actual); }
public void AnagramCheckTrueTest() { //The expectation of the method is true bool expected = true; //What the method actually delivers bool actual = AnagramMethod.AnagramCheck("PaRis", "sirap"); Assert.AreEqual(expected, actual); }
public void IsAnagram0() // with equal strings { bool result = AnagramMethod.IsAnagram("MethodTest", "Methodtest"); Assert.True(result); }
public void IsAnagram3() // with a few whitespace { bool result = AnagramMethod.IsAnagram("Methodtest", "M e Thod tes t "); Assert.True(result); }
public void IsAnagram2() // checking case-sensitivity { bool result = AnagramMethod.IsAnagram("methodTEST", "METHODtest"); Assert.True(result); }
public void IsAnagram1() //with non-equal strings { bool result = AnagramMethod.IsAnagram("MethodTest", "MuthudTust"); Assert.False(result); }