diff options
Diffstat (limited to 'DotnetPgn.Test/PieceParserTest.cs')
-rw-r--r-- | DotnetPgn.Test/PieceParserTest.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/DotnetPgn.Test/PieceParserTest.cs b/DotnetPgn.Test/PieceParserTest.cs new file mode 100644 index 0000000..e8aacf6 --- /dev/null +++ b/DotnetPgn.Test/PieceParserTest.cs @@ -0,0 +1,17 @@ +using System.Linq; +using DotnetPgn.Models; +using Xunit; + +namespace DotnetPgn.Test +{ + public class PieceParserTest + { + [Theory] + [InlineData("K", Piece.King)] + [InlineData("Q", Piece.Queen)] + public void ParsePieceTest(string input, Piece expectedOutput) + { + Assert.Equal(expectedOutput, PieceParser.ParsePiece(input)); + } + } +} |