public void GetJsonResultByWrongLocidTests() { // Arrange ShelfController controller = new ShelfController(); // Act JsonResult result = controller.GenCopyNumber(-10) as JsonResult; // Assert Assert.AreEqual(result.Data.ToString(), ""); }
public void GetJsonResultByRightLocidTests() { // Arrange ShelfController controller = new ShelfController(); // Act JsonResult result = controller.GenCopyNumber(49) as JsonResult; // Assert Assert.IsNotNull(result); }