Skip to content

Commit

Permalink
fix: LeftTopRightBottomType-Opposite
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkallesen committed Jan 23, 2024
1 parent 41bdaf5 commit 0a22547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Atc/Extensions/EnumAtcExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public static LeftTopRightBottomType Opposite(
=> leftTopRightBottomType switch
{
LeftTopRightBottomType.Left => LeftTopRightBottomType.Right,
LeftTopRightBottomType.Top => LeftTopRightBottomType.Top,
LeftTopRightBottomType.Top => LeftTopRightBottomType.Bottom,
LeftTopRightBottomType.Right => LeftTopRightBottomType.Left,
LeftTopRightBottomType.Bottom => LeftTopRightBottomType.Bottom,
LeftTopRightBottomType.Bottom => LeftTopRightBottomType.Top,
_ => LeftTopRightBottomType.None,
};

Expand Down
4 changes: 2 additions & 2 deletions test/Atc.Tests/Extensions/EnumAtcExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public void Opposite_LeftRightType(LeftRightType expected, LeftRightType input)

[Theory]
[InlineData(LeftTopRightBottomType.Left, LeftTopRightBottomType.Right)]
[InlineData(LeftTopRightBottomType.Top, LeftTopRightBottomType.Top)]
[InlineData(LeftTopRightBottomType.Top, LeftTopRightBottomType.Bottom)]
[InlineData(LeftTopRightBottomType.Right, LeftTopRightBottomType.Left)]
[InlineData(LeftTopRightBottomType.Bottom, LeftTopRightBottomType.Bottom)]
[InlineData(LeftTopRightBottomType.Bottom, LeftTopRightBottomType.Top)]
[InlineData(LeftTopRightBottomType.None, LeftTopRightBottomType.None)]
public void Opposite_LeftTopRightBottomType(LeftTopRightBottomType expected, LeftTopRightBottomType input)
=> Assert.Equal(expected, input.Opposite());
Expand Down

0 comments on commit 0a22547

Please sign in to comment.