public void Test_CompareAllHands() { var sut = new E054PokerHands(); string[] lines = GetHandsFromFile(); foreach (var line in lines) { sut.FirstPlayerWins(line); } }
public void Test1() { /* * 8C TS KC 9H 4S 7D 2S 5D 3S AC */ string[] lines = GetHandsFromFile(); var sut = new E054PokerHands(); /* 8C TS KC 9H 4S K high * 7D 2S 5D 3S AC A high */ Assert.False(sut.FirstPlayerWins(lines[0])); /* * 5C AD 5D AC 9C 2 pair * 7C 5H 8D TD KS K hih */ Assert.True(sut.FirstPlayerWins(lines[1])); }