23 lines
470 B
C#
23 lines
470 B
C#
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));
|
|
}
|
|
}
|
|
}
|