public void AddMediaTest() { SatelliteGroundStationControler satelliteGroundStationControler; // 测试用例1 satelliteGroundStationControler = new SatelliteGroundStationControler(); satelliteGroundStationControler.AddMedia( (Dictionary <string, object>)null, (Dictionary <string, object>)null); Assert.IsNotNull((object)satelliteGroundStationControler); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server); Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port); // 测试用例2 Dictionary <string, object> dictionary; satelliteGroundStationControler = new SatelliteGroundStationControler(); dictionary = new Dictionary <string, object>(0); dictionary[""] = (object)null; satelliteGroundStationControler.AddMedia( dictionary, (Dictionary <string, object>)null); Assert.IsNotNull((object)satelliteGroundStationControler); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server); Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port); }
public void AddMediaTest1() { SatelliteGroundStationControler satelliteGroundStationControler; satelliteGroundStationControler = new SatelliteGroundStationControler(); satelliteGroundStationControler.AddMedia( (string)null, (Dictionary <string, object>)null); Assert.IsNotNull((object)satelliteGroundStationControler); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server); Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port); }