checkmate complete
This commit is contained in:
@@ -8,10 +8,10 @@ namespace Shogi.Domain.UnitTests
|
||||
{
|
||||
public class ShogiShould
|
||||
{
|
||||
private readonly ITestOutputHelper logger;
|
||||
public ShogiShould(ITestOutputHelper logger)
|
||||
private readonly ITestOutputHelper console;
|
||||
public ShogiShould(ITestOutputHelper console)
|
||||
{
|
||||
this.logger = logger;
|
||||
this.console = console;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -455,6 +455,7 @@ namespace Shogi.Domain.UnitTests
|
||||
shogi.Move("E7", "E8", false);
|
||||
|
||||
// Assert - checkmate
|
||||
console.WriteLine(shogi.ToStringStateAsAscii());
|
||||
boardState.IsCheckmate.Should().BeTrue();
|
||||
boardState.InCheck.Should().Be(WhichPlayer.Player2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user