public void Test1_StudentGetName() { // arrange Student newStudent = new Student("Russ", "2016-1-1"); // act string result = newStudent.GetName(); Assert.Equal("Russ", result); }
public void Test6_UpdateStudent_Database() { Student newStudent = new Student("Rouz","2016-1-1"); newStudent.Save(); newStudent.Update("mike"); string result = newStudent.GetName(); Assert.Equal("mike", result); }