Example #1
0
        public void AddMediaTest1()
        {
            FireSituationController fireSituationController;

            fireSituationController = new FireSituationController();
            fireSituationController.AddMedia
                ((string)null, (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);
        }
Example #2
0
        public void AddMediaTest()
        {
            FireSituationController fireSituationController;

            //测试用例1
            fireSituationController = new FireSituationController();
            fireSituationController.AddMedia((Dictionary <string, object>)null, (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.AddMedia(dictionary, (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);
        }