public void Test_CanCreateResultNoSuccess_WithNoMessage() { //---------------Set up test pack------------------- //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- Result result = new Result(false); //---------------Test Result ----------------------- Assert.IsFalse(result.Successful); Assert.IsNull(result.Message); }
public void Test_CanCreateResultNoSuccess_WithMessage() { //---------------Set up test pack------------------- //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- string message = TestUtil.GetRandomString(); Result result = new Result(false, message); //---------------Test Result ----------------------- Assert.IsFalse(result.Successful); Assert.AreEqual(message, result.Message); }