public void ReturnsFalseIfNotPermutationASCII() { //act bool result = Q1_2.isPermutationASCII(_permutation1, _notpermuation); //assert Assert.IsFalse(result); }
public void ReturnsTrueIfPermutationASCII() { //act bool result = Q1_2.isPermutationASCII(_permutation1, _permutation2); //assert Assert.IsTrue(result); }
public void RaisesExceptionIfTwoNullPassed() { //arrange bool result; //act Action action = () => result = Q1_2.isPermutation(null, null); //assert Assert.ThrowsException <ArgumentNullException>(action); }
public void TwoEmptyStringsReturnsTrue() { //arrange bool result1; bool result2; bool result3; //act result1 = Q1_2.isPermutation("", ""); result2 = Q1_2.isPermutation(String.Empty, String.Empty); result3 = Q1_2.isPermutation(String.Empty, ""); //assert Assert.IsTrue(result1 && result2 && result3); }