private void AssertCornerEdge(IPositionateEdge edge, HorizontalPlace horizontal)
        {
            HorizontalPlace edgeHorizontal;

            if (edge is InCornerEdge cornerEdge)
            {
                edgeHorizontal = cornerEdge.Horizontal;
            }
            else
            {
                OnCornerEdge onCornerEdge = (OnCornerEdge)edge;
                edgeHorizontal = onCornerEdge.Horizontal;
            }

            Assert.AreEqual(edgeHorizontal, horizontal);
        }
 public InCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical) : base(PlaceType.CORNER)
 {
     this.Vertical   = vertical;
     this.Horizontal = horizontal;
 }
 public InCornerEdge(HorizontalPlace horizontal) : base(PlaceType.CORNER)
 {
     this.Horizontal = horizontal;
     this.Vertical   = this.EnumHelper.GetRandomEnum <VerticalPlace>();
 }
Example #4
0
 public OnCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical)
 {
     this.Vertical   = vertical;
     this.Horizontal = horizontal;
 }
Example #5
0
 public OnCornerEdge(HorizontalPlace horizontal)
 {
     this.Horizontal = horizontal;
     this.Vertical   = this.EnumHelper.GetRandomEnum <VerticalPlace>();
 }