public void IsRegularSplitPrice_ShouldReturnFalseRegularPriceAndNoSplit() { //Arrange string record = "50133333 Fuji Apples (Organic) 00000100 00000000 00000000 00000000 00000000 00000000 NNYNNNNNN lb"; TraderFoods404InputRecord subject = new TraderFoods404InputRecord(record); //Act bool actual = subject.IsRegularSplitPrice(); //Assert actual.Should().BeFalse(); }
public void HasRegularPricing_ShouldReturnTrueForNonZeroSplit() { //Arrange string record = "50133333 Fuji Apples (Organic) 00000000 00000000 00001000 00000000 00000000 00000000 NNYNNNNNN lb"; TraderFoods404InputRecord subject = new TraderFoods404InputRecord(record); //Act bool actual = subject.HasRegularPricing(); //Assert actual.Should().BeTrue(); }
public void IsRegularSplitPrice_ShouldReturnFalseNoRegularSplitPriceAndRegularSplit() { //Note: This test is for an invalid situation, but verifying the system behaves correct //Arrange string record = "50133333 Fuji Apples (Organic) 00000100 00000000 00000000 00000000 00000000 00000000 NNYNNNNNN lb"; TraderFoods404InputRecord subject = new TraderFoods404InputRecord(record); //Act bool actual = subject.IsRegularSplitPrice(); //Assert actual.Should().BeFalse(); }