Skip to content

Commit

Permalink
Tests OrientationExtensionsTests.RotateInverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Richardson committed Feb 8, 2018
1 parent 4e7a89e commit adb80e1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Sharpasonne.Models.Tests/OrientationExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,23 @@ public void Given_AnUnrotatedOrientation_WhenRotatingByTop_Then_ReturnSameOrient
}

[Fact]
public void Given_AnUnrotatedOrientation_WhenRotatingByEVERYTHING_Then_IsCorrect()
public void WhenRotatingByEVERYTHING_Then_IsCorrect()
{
Assert.Equal(Orientation.Right, Orientation.Top.Rotate(Orientation.Right));
Assert.Equal(Orientation.Top, Orientation.Right.Rotate(Orientation.Left));
Assert.Equal(Orientation.Bottom, Orientation.Right.Rotate(Orientation.Right));
Assert.Equal(Orientation.Top, Orientation.Bottom.Rotate(Orientation.Bottom));
Assert.Equal(Orientation.Bottom, Orientation.Left.Rotate(Orientation.Left));
}

[Fact]
public void WhenRotatingInverseByEVERYTHING_Then_IsCorrect()
{
Assert.Equal(Orientation.Left, Orientation.Top.RotateInverse(Orientation.Right));
Assert.Equal(Orientation.Bottom, Orientation.Right.RotateInverse(Orientation.Left));
Assert.Equal(Orientation.Top, Orientation.Right.RotateInverse(Orientation.Right));
Assert.Equal(Orientation.Top, Orientation.Bottom.RotateInverse(Orientation.Bottom));
Assert.Equal(Orientation.Top, Orientation.Left.RotateInverse(Orientation.Left));
}
}
}

0 comments on commit adb80e1

Please sign in to comment.