常用方法
常用方法
常用方法
常用方法
public void EmailTest() { var context = GetInMemoryDBMetData(); StudentController s = new StudentController(context); var result = Assert.IsType <ViewResult>(s.Email(5)); var model = Assert.IsType <Student>(result.Model); Assert.True(model.email == "*****@*****.**"); }