public void UnitBeingTested_StateUnderTest_ExpectedBehaviour(int y, char digit, string expected) { // Arrange var fourStateBarcode = new FourStateBarcode(); // Act var result = fourStateBarcode.BarOrSpaceGolfed(y, digit); // Assert result.Should().Be(expected); }
public void ConstructBarcode_StateUnderTest_ExpectedBehaviour() { // Arrange var fourStateBarcode = new FourStateBarcode(); var expected = "| | | | | | | | | | \n" + "| | | | | | | | | | | | | | | | \n" + " | | | | | | | | \n"; // Act var result = fourStateBarcode.ConstructBarcode(7313145); // Assert result.Should().Be(expected); }