public static void Validate(ActionInfo actionInfo) { ValidateUnknownBits(actionInfo); ActionInfo oldAction = actionInfo; PlaceCardOnFieldInfo info = FromAction(actionInfo); info.ToAction(ref actionInfo); Debug.Assert(oldAction.Equals(actionInfo)); }
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)); }