public void WillParsePackQuantity() { ProductOptions productOptionOne = new ProductOptions(); productOptionOne.display_name = "Material"; productOptionOne.display_value = "Brass"; ProductOptions productOptionTwo = new ProductOptions(); productOptionTwo.display_name = "Value Pack Options"; productOptionTwo.display_value = "4 Pack - $215.00 / Each - Best Value"; List <ProductOptions> productOptions = new List <ProductOptions>() { productOptionOne, productOptionTwo }; Product product = new Product(); product.ProductOptions = productOptions; int packQuantity = BigCommerceController.ParsePackQuantity(product); int expectedPackQuantity = 4; Assert.Equal(expectedPackQuantity, packQuantity); }