示例#1
0
        public void DeleteTest1()
        {
            ForestBeltPointController forestBeltPointController;

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

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

            // 测试用例2
            Dictionary <string, object> dictionary;

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