Ejemplo n.º 1
0
 internal void Validate(RubixCubeFaceValidationResult validation)
 {
     Validator.ValidateObject(this, new ValidationContext(this), true);
     validation.Description = description;
     validation.ValidateAdjacentCubes(NamedBackLeftCube, NamedBackCube);
     validation.ValidateAdjacentCubes(NamedBackLeftCube, NamedLeftCube);
     validation.ValidateAdjacentCubes(NamedBackCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBackRightCube, NamedBackCube);
     validation.ValidateAdjacentCubes(NamedBackRightCube, NamedRightCube);
     validation.ValidateAdjacentCubes(NamedLeftCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedRightCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedFrontLeftCube, NamedFrontCube);
     validation.ValidateAdjacentCubes(NamedFrontLeftCube, NamedLeftCube);
     validation.ValidateAdjacentCubes(NamedFrontCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedFrontRightCube, NamedFrontCube);
     validation.ValidateAdjacentCubes(NamedFrontRightCube, NamedRightCube);
 }
 internal void Validate(RubixCubeFaceValidationResult validation)
 {
     Validator.ValidateObject(this, new ValidationContext(this), true);
     validation.Description = description;
     validation.ValidateAdjacentCubes(NamedFrontTopCube, NamedTopCube);
     validation.ValidateAdjacentCubes(NamedFrontTopCube, NamedFrontCube);
     validation.ValidateAdjacentCubes(NamedTopCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBackTopCube, NamedTopCube);
     validation.ValidateAdjacentCubes(NamedBackTopCube, NamedBackCube);
     validation.ValidateAdjacentCubes(NamedFrontCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBackCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBackTopCube, NamedTopCube);
     validation.ValidateAdjacentCubes(NamedBackTopCube, NamedBackCube);
     validation.ValidateAdjacentCubes(NamedBottomCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBackBottomCube, NamedBottomCube);
     validation.ValidateAdjacentCubes(NamedBackBottomCube, NamedBackCube);
 }
 internal void Validate(RubixCubeFaceValidationResult validation)
 {
     Validator.ValidateObject(this, new ValidationContext(this), true);
     validation.ValidateAdjacentCubes(NamedTopLeftCube, NamedTopCube);
     validation.ValidateAdjacentCubes(NamedTopLeftCube, NamedLeftCube);
     validation.ValidateAdjacentCubes(NamedTopCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedTopRightCube, NamedTopCube);
     validation.ValidateAdjacentCubes(NamedTopRightCube, NamedRightCube);
     validation.ValidateAdjacentCubes(NamedLeftCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedRightCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBottomLeftCube, NamedBottomCube);
     validation.ValidateAdjacentCubes(NamedBottomLeftCube, NamedLeftCube);
     validation.ValidateAdjacentCubes(NamedBottomCube, NamedCenterCube);
     validation.ValidateAdjacentCubes(NamedBottomRightCube, NamedBottomCube);
     validation.ValidateAdjacentCubes(NamedBottomRightCube, NamedRightCube);
 }