public void TestAvg() { // This test checks for a normal input age. // Arange int birthYear = 1977; int expectedAge = 44; int actualAge; var instance = new FirstResponsiveWebAppBurgett.Models.FirstResponsiveModel(); // Act actualAge = instance.AgeThisYear(birthYear); // Assert Assert.Equal(expectedAge, actualAge); }
public void TestHigh() { // This test checks the high end of the age limit. // Arange int birthYear = 2020; int expectedAge = 1; int actualAge; var instance = new FirstResponsiveWebAppBurgett.Models.FirstResponsiveModel(); // Act actualAge = instance.AgeThisYear(birthYear); // Assert Assert.Equal(expectedAge, actualAge); }