Skip to content

Your Turn!

Write your own test!

Now that we know more about MSTest and how to execute test cases using that Framework, let's try to write 2 more test cases to cover Email, Message functionalities.

To help you get started, add and implement the following skeleton code to TodoTests.cs

[]
public void Test_TodoEmail()
{

}

[]
public void Test_TodoMessage()
{

}
Cheat Sheet
Sample valid Test Implementation:

[TestMethod]
public void Test_TodoEmail()
{
    testTodo.Email = "test@test.com";
    var testResult = testTodo.Email;
    Assert.AreEqual("test@test.com", testResult);
}

[TestMethod]
public void Test_TodoMessage()
{
    testTodo.Message = "test description";
    var testResult = testTodo.Message;
    Assert.AreEqual("test description", testResult);
}