public void GIVEN_BackstagePasses_WHEN_Processed_And_SellInGreaterThan10_THEN_QualityIncreases() { // arrange const string expected = "Backstage Passes 14 5"; var item = new Item("Backstage Passes", 15, 4); // act var svc = new ProcessBackStagePass(); var actual = svc.Execute(item); // assert actual.Should().BeEquivalentTo(expected); }
public void GIVEN_BackstagePasses_WHEN_Processed_And_SellInLessThan1_THEN_QualitySetTo0() { // arrange const string expected = "Backstage Passes -2 0"; var item = new Item("Backstage Passes", -1, 4); // act var svc = new ProcessBackStagePass(); var actual = svc.Execute(item); // assert actual.Should().BeEquivalentTo(expected); }