public void NewLocationTest()
 {
     Point3D location = new Point3D(); // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingLocationEventArgs target = new UpdatingLocationEventArgs( location, gameEntity ); // TODO: 初始化为适当的值
     Point3D actual;
     actual = target.NewLocation;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 public void IsCancelTest()
 {
     Point3D location = new Point3D(); // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingLocationEventArgs target = new UpdatingLocationEventArgs( location, gameEntity ); // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     target.IsCancel = expected;
     actual = target.IsCancel;
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
        /// <summary>
        ///
        /// </summary>
        internal bool OnUpdatingLocation(Point3D point3D, WorldEntity gameEntity)
        {
            EventHandler <UpdatingLocationEventArgs> tempBeforeEventArgs = m_EventUpdatingLocation;

            if (tempBeforeEventArgs != null)
            {
                UpdatingLocationEventArgs eventArgs = new UpdatingLocationEventArgs(point3D, gameEntity);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
 public void UpdatingLocationEventArgsConstructorTest()
 {
     Point3D location = new Point3D(); // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     UpdatingLocationEventArgs target = new UpdatingLocationEventArgs( location, gameEntity );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingLocation( Point3D point3D, WorldEntity gameEntity )
        {
            EventHandler<UpdatingLocationEventArgs> tempBeforeEventArgs = m_EventUpdatingLocation;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingLocationEventArgs eventArgs = new UpdatingLocationEventArgs( point3D, gameEntity );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }