예제 #1
0
        public void DeleteMediaTest1()
        {
            FireSituationController fireSituationController;

            fireSituationController = new FireSituationController();
            fireSituationController.DeleteMedia((string)null);
            Assert.IsNotNull((object)fireSituationController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)fireSituationController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireSituationController).Port);
        }
예제 #2
0
        public void DeleteMediaTest()
        {
            FireSituationController fireSituationController;

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

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

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