public void GetAgeTest() { int expected = 54; Assert.AreEqual(expected, s1.GetAge()); expected = 69; Assert.AreEqual(expected, s2.GetAge()); }
public void GetStudentDetails_WhenCalled_ShouldReturnNameAndAge(string name, int age) { var expectedName = "Stephen"; var expectedAge = 22; var mockStudent = new Student(name, age); Assert.AreEqual(expectedName, mockStudent.GetName()); Assert.AreEqual(expectedAge, mockStudent.GetAge()); }