private void AssertCornerEdge(IPositionateEdge edge, VerticalPlace vertical) { VerticalPlace edgeVertical; if (edge is InCornerEdge cornerEdge) { edgeVertical = cornerEdge.Vertical; } else { OnCornerEdge onCornerEdge = (OnCornerEdge)edge; edgeVertical = onCornerEdge.Vertical; } Assert.AreEqual(edgeVertical, vertical); }
public InCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical) : base(PlaceType.CORNER) { this.Vertical = vertical; this.Horizontal = horizontal; }
public InCornerEdge(VerticalPlace vertical) : base(PlaceType.CORNER) { this.Vertical = vertical; this.Horizontal = this.EnumHelper.GetRandomEnum <HorizontalPlace>(); }
public OnCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical) { this.Vertical = vertical; this.Horizontal = horizontal; }
public OnCornerEdge(VerticalPlace vertical) { this.Vertical = vertical; this.Horizontal = this.EnumHelper.GetRandomEnum <HorizontalPlace>(); }