public void Add() { // Arrange PropertyEditorController controller = new PropertyEditorController(); // Act ViewResult result = controller.Add(new Property { Name = "TEST_PROPERTY", Type = (int)property_type.integer_type, Value = "128" }) as ViewResult; // Assert Assert.IsNotNull(result); }
public void Edit() { // Arrange PropertyEditorController controller = new PropertyEditorController(); Property property = new Property { Name = "TEST_PROPERTY4", Type = (int)property_type.integer_type, Value = "500" }; // Act ViewResult result = controller.Add(property) as ViewResult; // Assert Assert.IsNotNull(result); // Act result = controller.Edit(property) as ViewResult; // Assert Assert.IsNotNull(result); }