コード例 #1
0
        public void DeleteTest1()
        {
            FireCommandController fireCommandController;

            fireCommandController = new FireCommandController();
            fireCommandController.Delete((string)null);
            Assert.IsNotNull((object)fireCommandController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireCommandController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireCommandController).Port);
        }
コード例 #2
0
        public void DeleteTest()
        {
            FireCommandController fireCommandController;

            // 测试用例1
            fireCommandController = new FireCommandController();
            fireCommandController.Delete((Dictionary <string, object>)null);
            Assert.IsNotNull((object)fireCommandController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireCommandController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireCommandController).Port);
            // 测试用例2
            Dictionary <string, object> dictionary;

            fireCommandController = new FireCommandController();
            dictionary            = new Dictionary <string, object>(0);
            dictionary[""]        = (object)null;
            fireCommandController.Delete(dictionary);
            Assert.IsNotNull((object)fireCommandController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireCommandController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireCommandController).Port);
        }