yep
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user