Esempio n. 1
0
        public void UpdatingOwnerEventArgsConstructorTest()
        {
            BaseCreature           ownerCreature = null; // TODO: 初始化为适当的值
            BaseItem               item          = null; // TODO: 初始化为适当的值
            UpdatingOwnerEventArgs target        = new UpdatingOwnerEventArgs(ownerCreature, item);

            Assert.Inconclusive("TODO: 实现用来验证目标的代码");
        }
 public void NewOwnerTest()
 {
     BaseCreature ownerCreature = null; // TODO: 初始化为适当的值
     BaseItem item = null; // TODO: 初始化为适当的值
     UpdatingOwnerEventArgs target = new UpdatingOwnerEventArgs( ownerCreature, item ); // TODO: 初始化为适当的值
     BaseCreature actual;
     actual = target.NewOwner;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Esempio n. 3
0
        public void NewOwnerTest()
        {
            BaseCreature           ownerCreature = null;                                            // TODO: 初始化为适当的值
            BaseItem               item          = null;                                            // TODO: 初始化为适当的值
            UpdatingOwnerEventArgs target        = new UpdatingOwnerEventArgs(ownerCreature, item); // TODO: 初始化为适当的值
            BaseCreature           actual;

            actual = target.NewOwner;
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
 public void IsCancelTest()
 {
     BaseCreature ownerCreature = null; // TODO: 初始化为适当的值
     BaseItem item = null; // TODO: 初始化为适当的值
     UpdatingOwnerEventArgs target = new UpdatingOwnerEventArgs( ownerCreature, item ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
Esempio n. 5
0
        public void IsCancelTest()
        {
            BaseCreature           ownerCreature = null;                                            // TODO: 初始化为适当的值
            BaseItem               item          = null;                                            // TODO: 初始化为适当的值
            UpdatingOwnerEventArgs target        = new UpdatingOwnerEventArgs(ownerCreature, item); // TODO: 初始化为适当的值
            bool expected = false;                                                                  // TODO: 初始化为适当的值
            bool actual;

            target.IsCancel = expected;
            actual          = target.IsCancel;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingOwner( BaseCreature ownerCreature, BaseItem item )
        {
            EventHandler<UpdatingOwnerEventArgs> tempBeforeEventArgs = m_EventUpdatingOwner;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingOwnerEventArgs eventArgs = new UpdatingOwnerEventArgs( ownerCreature, item );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }
 public void UpdatingOwnerEventArgsConstructorTest()
 {
     BaseCreature ownerCreature = null; // TODO: 初始化为适当的值
     BaseItem item = null; // TODO: 初始化为适当的值
     UpdatingOwnerEventArgs target = new UpdatingOwnerEventArgs( ownerCreature, item );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }