示例#1
0
        public void DeleteMediaTest1()
        {
            GridUserTableController gridUserTableController;

            gridUserTableController = new GridUserTableController();
            gridUserTableController.DeleteMedia((string)null);
            Assert.IsNotNull((object)gridUserTableController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)gridUserTableController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)gridUserTableController).Port);
        }
示例#2
0
        public void DeleteMediaTest()
        {
            //测试用例1
            GridUserTableController gridUserTableController;

            gridUserTableController = new GridUserTableController();
            gridUserTableController.DeleteMedia((Dictionary <string, object>)null);
            Assert.IsNotNull((object)gridUserTableController);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)gridUserTableController).Server);
            Assert.AreEqual <int>(8080, ((BaseService)gridUserTableController).Port);

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

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