public void Given_a_destination_followed_by_a_partial_castle__c3_DASH_O__Should_set_HasError_to__true() { const string move = "c3-O"; var algebraic = _parser.Parse(move); algebraic.HasError.ShouldBeTrue(); algebraic.ErrorMessage.ShouldNotBeNullOrEmpty(); }
public void Given_a_move_representing__Bishop_captures_d4__should_return__Bxd4() { const string input = "Bxd4"; var move = _parser.Parse(input); move.HasError.ShouldBeFalse(); var result = move.ToAlgebraicString(); result.ShouldBeEqualTo(input); }