예제 #1
0
        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);
        }
예제 #2
0
 public InCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical) : base(PlaceType.CORNER)
 {
     this.Vertical   = vertical;
     this.Horizontal = horizontal;
 }
예제 #3
0
 public InCornerEdge(VerticalPlace vertical) : base(PlaceType.CORNER)
 {
     this.Vertical   = vertical;
     this.Horizontal = this.EnumHelper.GetRandomEnum <HorizontalPlace>();
 }
예제 #4
0
 public OnCornerEdge(HorizontalPlace horizontal, VerticalPlace vertical)
 {
     this.Vertical   = vertical;
     this.Horizontal = horizontal;
 }
예제 #5
0
 public OnCornerEdge(VerticalPlace vertical)
 {
     this.Vertical   = vertical;
     this.Horizontal = this.EnumHelper.GetRandomEnum <HorizontalPlace>();
 }