public void AddMediaTest1()
        {
            FireOfficeController fireOfficeController;

            fireOfficeController = new FireOfficeController();
            fireOfficeController.AddMedia((string)null, (Dictionary <string, object>)null);
            Assert.IsNotNull((object)fireOfficeController);
            Assert.AreEqual <string>("127.0.0.1", ((BaseService)fireOfficeController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)fireOfficeController).Port);
        }
        public void AddMediaTest()
        {
            FireOfficeController fireOfficeController;

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

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

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