public void OK8() { // Arrange Ingredient total = new Ingredient(160, 40, true, false); List <Ingredient> ingredients = new List <Ingredient>(); Ingredient ingredient; ingredient = new Ingredient(30, 100); ingredients.Add(ingredient); ingredient = new Ingredient(40, 20, false, true); ingredients.Add(ingredient); ingredient = new Ingredient(60, 0); ingredients.Add(ingredient); // Act UVCountValidationResult result = Calculator.GetUnknownValuesCountState(ingredients, total); // Assert Assert.Equal(UVCountValidationResult.OK, result); }
public void InsufficientSelections1() { // Arrange Ingredient total = new Ingredient(160, 40); List <Ingredient> ingredients = new List <Ingredient>(); Ingredient ingredient; ingredient = new Ingredient(30, 100); ingredients.Add(ingredient); ingredient = new Ingredient(40, 20); ingredients.Add(ingredient); ingredient = new Ingredient(60, 0); ingredients.Add(ingredient); // Act UVCountValidationResult result = Calculator.GetUnknownValuesCountState(ingredients, total); // Assert Assert.Equal(UVCountValidationResult.InsufficientSelections, result); }