public void TestMixedWords() { var input = "it has more than three words"; var r = Interview2.RevertString(input); Assert.Equal("words three than more has it", r); }
public void TestOddWords2() { var input = "every three words"; var r = Interview2.RevertString2(input); Assert.Equal("words three every", r); }
public void TestEvenWords2() { var input = "this contains four alphas"; var r = Interview2.RevertString2(input); Assert.Equal("alphas four contains this", r); }
public void TestWhitespace2() { var input = " "; var r = Interview2.RevertString2(input); Assert.Equal(string.Empty, r); }
public void TestNull() { string input = null; var r = Interview2.RevertString(input); Assert.Equal(null, r); }
public void TestEmpty2() { var input = string.Empty; var r = Interview2.RevertString2(input); Assert.Equal(string.Empty, r); }