コード例 #1
0
 public void ParsePbn()
 {
     var hands = HandCollection.ParsePbn("W:KQT2.AT.J6542.85 - A8654.KQ5.T.QJT6 -");
     Assert.AreEqual(13, hands[Seat.West].Cards.Count);
     Assert.AreEqual(0, hands[Seat.North].Cards.Count);
     Assert.AreEqual(13, hands[Seat.East].Cards.Count);
     Assert.AreEqual(0, hands[Seat.South].Cards.Count);
     CollectionAssert.Contains(hands[Seat.West].Cards, Card.Parse("KS"));
     CollectionAssert.Contains(hands[Seat.East].Cards, Card.Parse("6C"));
 }
コード例 #2
0
 public void Issue9()
 {
     var pbn = "N:AKJ763.987.T8.Q8 .AKT3.Q6543.KJ64 QT98.64.A9.97532 542.QJ52.KJ72.AT";
     var hands = HandCollection.ParsePbn(pbn);
     Assert.AreEqual(pbn, hands.ToPbn(Seat.North));
 }
コード例 #3
0
 public void ToPbn()
 {
     var pbn = "W:KQT2.AT.J6542.85 - A8654.KQ5.T.QJT6 -";
     var hands = HandCollection.ParsePbn(pbn);
     Assert.AreEqual(pbn, hands.ToPbn(Seat.West));
 }