squash a bunch of commits
This commit is contained in:
25
Tests/UnitTests/NotationShould.cs
Normal file
25
Tests/UnitTests/NotationShould.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Numerics;
|
||||
|
||||
namespace Shogi.Domain.UnitTests
|
||||
{
|
||||
public class NotationShould
|
||||
{
|
||||
[Fact]
|
||||
public void ConvertFromNotationToVector()
|
||||
{
|
||||
Notation.FromBoardNotation("A1").Should().Be(new Vector2(0, 0));
|
||||
Notation.FromBoardNotation("E5").Should().Be(new Vector2(4, 4));
|
||||
Notation.FromBoardNotation("I9").Should().Be(new Vector2(8, 8));
|
||||
Notation.FromBoardNotation("C3").Should().Be(new Vector2(2, 2));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ConvertFromVectorToNotation()
|
||||
{
|
||||
Notation.ToBoardNotation(new Vector2(0, 0)).Should().Be("A1");
|
||||
Notation.ToBoardNotation(new Vector2(4, 4)).Should().Be("E5");
|
||||
Notation.ToBoardNotation(new Vector2(8, 8)).Should().Be("I9");
|
||||
Notation.ToBoardNotation(new Vector2(2, 2)).Should().Be("C3");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user