public void ShouldTestUsingClassData_WinningDiagonal(TestData data) { // arrange var determinator = new DiagonalDeterminator(); // act var result = determinator.IsThisAWin(data.Input); // assert Assert.Equal(data.Expected, result); }
public void ShouldTestDiagonalDeterminator(TestData data) { // arrange var mockDeterminator = new Mock <IWinningBoard>(); mockDeterminator .Setup(_ => _.IsThisAWin(data.Input)) .Returns(data.Expected); var mockDeterminators = new DiagonalDeterminator(); // act var result = mockDeterminators.IsThisAWin(data.Input); // assert Assert.Equal(data.Expected, result); }