This commit is contained in:
2021-08-01 17:32:43 -05:00
parent 178cb00253
commit b10f61a489
76 changed files with 1655 additions and 1185 deletions

View File

@@ -0,0 +1,41 @@
using AutoFixture;
using FluentAssertions;
using Gameboard.ShogiUI.Sockets.Models;
using Gameboard.ShogiUI.Sockets.Utilities;
using Xunit;
namespace Gameboard.ShogiUI.xUnitTests
{
public class CoordsToNotationCollectionShould
{
private readonly Fixture fixture;
private readonly CoordsToNotationCollection collection;
public CoordsToNotationCollectionShould()
{
fixture = new Fixture();
collection = new CoordsToNotationCollection();
}
[Fact]
public void TranslateCoordinatesToNotation()
{
// Arrange
collection[0, 0] = fixture.Create<Piece>();
collection[4, 4] = fixture.Create<Piece>();
collection[8, 8] = fixture.Create<Piece>();
collection[2, 2] = fixture.Create<Piece>();
// Assert
collection["A1"].Should().BeSameAs(collection[0, 0]);
collection["E5"].Should().BeSameAs(collection[4, 4]);
collection["I9"].Should().BeSameAs(collection[8, 8]);
collection["C3"].Should().BeSameAs(collection[2, 2]);
}
[Fact]
public void Yep()
{
}
}
}