Files
Shogi/Gameboard.ShogiUI.xUnitTests/CoordsToNotationCollectionShould.cs
2021-08-01 17:32:43 -05:00

42 lines
1.1 KiB
C#

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()
{
}
}
}