예제 #1
0
            public static void Validate(ActionInfo actionInfo)
            {
                ValidateUnknownBits(actionInfo);

                ActionInfo           oldAction = actionInfo;
                PlaceCardOnFieldInfo info      = FromAction(actionInfo);

                info.ToAction(ref actionInfo);
                Debug.Assert(oldAction.Equals(actionInfo));
            }
예제 #2
0
            public static void Validate(PlaceCardOnFieldInfo info)
            {
                ActionInfo actionInfo = new ActionInfo();

                info.ToAction(ref actionInfo);
                ValidateUnknownBits(actionInfo);

                PlaceCardOnFieldInfo newInfo = FromAction(actionInfo);

                Debug.Assert(newInfo.Equals(info));
            }