public void TestUsingInvalidString() { HelloWorldOrNumberPart2 source = new HelloWorldOrNumberPart2(); string testResult = source.CheckForMultiplesPart2("hello"); Assert.AreEqual(testResult, "hello is not a valid number"); }
public void TestUsingCorrectString03() { //The value of 1 should return the string "1" HelloWorldOrNumberPart2 source = new HelloWorldOrNumberPart2(); string testResult = source.CheckForMultiplesPart2("1"); Assert.AreEqual(testResult, "1"); }
public void TestUsingInvalidInteger() { HelloWorldOrNumberPart2 source = new HelloWorldOrNumberPart2(); string testResult = source.CheckForMultiplesPart2(-95); Assert.AreEqual(testResult, "Not a Positive Number"); }
public void TestUsingCorrectInteger02() { //The value of 300 should return the string "HelloWorld" HelloWorldOrNumberPart2 source = new HelloWorldOrNumberPart2(); string testResult = source.CheckForMultiplesPart2(300); Assert.AreEqual(testResult, "HelloWorld"); }