public void GetTea_ShouldNotFindTea() { var controller = new TeasController(); var result = controller.GetTea(1000); Assert.IsInstanceOfType(result, typeof(NotFoundResult)); }
public void GetTeaTest() { var controller = new TeasController(); var result = controller.GetTea(1) as OkNegotiatedContentResult <Tea>; Assert.IsNotNull(result); Assert.AreEqual(testdb.getTea(1).Name, result.Content.Name); }