示例#1
0
        public void Test1_StudentGetName()
        {
            // arrange
              Student newStudent = new Student("Russ", "2016-1-1");
              // act
              string result = newStudent.GetName();

              Assert.Equal("Russ", result);
        }
示例#2
0
        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);
        }