public void DeleteMediaTest() { SatelliteGroundStationControler satelliteGroundStationControler; // 测试用例1 satelliteGroundStationControler = new SatelliteGroundStationControler(); satelliteGroundStationControler.DeleteMedia ((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.DeleteMedia(dictionary); Assert.IsNotNull((object)satelliteGroundStationControler); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server); Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port); }
public void DeleteMediaTest1() { SatelliteGroundStationControler satelliteGroundStationControler; satelliteGroundStationControler = new SatelliteGroundStationControler(); satelliteGroundStationControler.DeleteMedia((string)null); Assert.IsNotNull((object)satelliteGroundStationControler); Assert.AreEqual <string> ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server); Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port); }