public void DeleteTest1() { FireHBrigadeController fireHBrigadeController; fireHBrigadeController = new FireHBrigadeController(); fireHBrigadeController.Delete((string)null); Assert.IsNotNull((object)fireHBrigadeController); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)fireHBrigadeController).Server); Assert.AreEqual <int>(8080, ((BaseService)fireHBrigadeController).Port); }
public void DeleteTest() { FireHBrigadeController fireHBrigadeController; //用例测试1 fireHBrigadeController = new FireHBrigadeController(); fireHBrigadeController.Delete((Dictionary <string, object>)null); Assert.IsNotNull((object)fireHBrigadeController); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)fireHBrigadeController).Server); Assert.AreEqual <int>(8080, ((BaseService)fireHBrigadeController).Port); // 用力测试2 Dictionary <string, object> dictionary; fireHBrigadeController = new FireHBrigadeController(); dictionary = new Dictionary <string, object>(0); dictionary[""] = (object)null; fireHBrigadeController.Delete(dictionary); Assert.IsNotNull((object)fireHBrigadeController); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)fireHBrigadeController).Server); Assert.AreEqual <int>(8080, ((BaseService)fireHBrigadeController).Port); }