yep
This commit is contained in:
22
Gameboard.ShogiUI.xUnitTests/NotationHelperShould.cs
Normal file
22
Gameboard.ShogiUI.xUnitTests/NotationHelperShould.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using FluentAssertions;
|
||||
using Gameboard.ShogiUI.Sockets.Utilities;
|
||||
using System.Numerics;
|
||||
using Xunit;
|
||||
|
||||
namespace Gameboard.ShogiUI.xUnitTests
|
||||
{
|
||||
public class NotationHelperShould
|
||||
{
|
||||
[Fact]
|
||||
public void TranslateVectorsToNotation()
|
||||
{
|
||||
NotationHelper.ToBoardNotation(2, 2).Should().Be("C3");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TranslateNotationToVectors()
|
||||
{
|
||||
NotationHelper.FromBoardNotation("C3").Should().Be(new Vector2(2, 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user