Example #1
0
        public void DeleteTest1()
        {
            SatelliteGroundStationControler satelliteGroundStationControler;

            satelliteGroundStationControler = new SatelliteGroundStationControler();
            satelliteGroundStationControler.Delete((string)null);
            Assert.IsNotNull((object)satelliteGroundStationControler);
            Assert.AreEqual <string>
                ("127.0.0.1", ((BaseService)satelliteGroundStationControler).Server);
            Assert.AreEqual <int>(8080, ((BaseService)satelliteGroundStationControler).Port);
        }
Example #2
0
        public void DeleteTest()
        {
            SatelliteGroundStationControler satelliteGroundStationControler;

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