コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="configZone"></param>
        /// <returns></returns>
        public void InitZone(ConfigZone configZone)
        {
            if (configZone == null)
            {
                throw new Exception("Zone.InitZone(...) - configZone == null error!");
            }

            m_ConfigZone = configZone;
        }
コード例 #2
0
 public void ZonePasswordTest()
 {
     ConfigZone target = new ConfigZone(); // TODO: 初始化为适当的值
     string expected = string.Empty; // TODO: 初始化为适当的值
     string actual;
     target.ZonePassword = expected;
     actual = target.ZonePassword;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
コード例 #3
0
 public void ZonePortTest()
 {
     ConfigZone target = new ConfigZone(); // TODO: 初始化为适当的值
     int expected = 0; // TODO: 初始化为适当的值
     int actual;
     target.ZonePort = expected;
     actual = target.ZonePort;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
コード例 #4
0
 public void ConfigZoneConstructorTest()
 {
     ConfigZone target = new ConfigZone();
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }