public void NullOrEmptyValue_TitleCaseTest(string str) { //arrange var url = new URL(); //assert Assert.ThrowsException <ArgumentOutOfRangeException>(() => TitleCase.Exec(str)); }
public void NullSecondArg_TitleCaseTest() { //arrange var url = new URL(); string result = TitleCase.Exec("the quick brown fox"); //act string expected = "The Quick Brown Fox"; //assert Assert.IsTrue(result == expected); }
public void TestMult_TitleCaseTest() { //arrange var url = new URL(); string result = TitleCase.Exec("a clash of KINGS", "a an the of"); //act string expected = "A Clash of Kings"; //assert Assert.IsTrue(result == expected); }