public void IsWin_ShouldReturnTrueWhenIsWin() { //Arrange FakeCell fakeCell = new FakeCell.Builder().Value("1").Build(); FakeCellCollection fakeCellCollection = new FakeCellCollection.Builder().At(fakeCell).Build(); Win subject = new TestWin(fakeCellCollection, 1, 2, 3); //Act Bool actual = subject.IsWin(); //Assert ((bool)actual).Should().BeTrue(); }
public void IsWin_ShouldReturnFalseWhenNotMatch() { //Arrange FakeCell fakeCell1 = new FakeCell.Builder().Value("1").Build(); FakeCell fakeCell2 = new FakeCell.Builder().Value("2").Build(); FakeCellCollection fakeCellCollection = new FakeCellCollection.Builder().At(fakeCell1, fakeCell2).Build(); Win subject = new TestWin(fakeCellCollection, 1, 2, 3); //Act Bool actual = subject.IsWin(); //Assert ((bool)actual).Should().BeFalse(); }