示例#1
0
 public void CurrentRotation_Should_Return_Element_From_Pattern_By_RotationNumber()
 {
     var expected = new TetrisCup(1, 1, new Point[]{});
     var figure = new Figure
     {
         Pattern = new Pattern()
         {
             Rotations = new TetrisCup[] { null, expected}
         },
         RotationNumber = 1,
     };
     figure.CurrentRotation.Should().Be(expected);
 }
示例#2
0
        public void CurrentRotation_Should_Return_Element_From_Pattern_By_RotationNumber()
        {
            var expected = new TetrisCup(1, 1, new Point[] {});
            var figure   = new Figure
            {
                Pattern = new Pattern()
                {
                    Rotations = new TetrisCup[] { null, expected }
                },
                RotationNumber = 1,
            };

            figure.CurrentRotation.Should().Be(expected);
        }