public void WithPon(string hand, int tileTypeId, int expectedShanten) { var parser = new ShorthandParser(hand); var c = new UkeIreCalculator(parser); var t = c.WithPon(TileType.FromTileTypeId(tileTypeId)); var actual = t.Shanten; Assert.Equal(expectedShanten, actual); }
public void HighestUkeIreDiscard(string hand, string expectedTileType) { var expected = TileType.FromString(expectedTileType).TileTypeId; var parser = new ShorthandParser(hand); var c = new UkeIreCalculator(parser); var actual = c.GetHighestUkeIreDiscard(); Assert.Equal(expected, actual); }