public void ParseQuantity_Returns_Valid_Number(string firstParam, int expectedValue) { var result = new TargetResult { FirstParameter = firstParam }; var quantity = TargetLocation.ParseQuantity(result).Quantity; quantity.Should().Be(expectedValue); }