public void TestGetBagOptionsContains() { string[] rawData = LuggageProcessor.GetInputData(FilePathTestData); Dictionary <string, string[]> ruleBook = LuggageProcessor.CreateRuleBook(rawData); List <string> bagOptions = LuggageProcessor.GetBagOptions(ruleBook, "not existing"); Assert.IsEmpty(bagOptions); }
public void TestGetBagOptionsContains(string bagColor, string expectedColor) { string[] rawData = LuggageProcessor.GetInputData(FilePathTestData); Dictionary <string, string[]> ruleBook = LuggageProcessor.CreateRuleBook(rawData); List <string> bagOptions = LuggageProcessor.GetBagOptions(ruleBook, bagColor); Assert.Contains(expectedColor, bagOptions); }
public void TestGetBagOptionsEquality() { var expectedColors = new List <string> { "bright white", "muted yellow", "dark orange", "light red" }; string[] rawData = LuggageProcessor.GetInputData(FilePathTestData); Dictionary <string, string[]> ruleBook = LuggageProcessor.CreateRuleBook(rawData); List <string> bagOptions = LuggageProcessor.GetBagOptions(ruleBook, "shiny gold"); Assert.Warn("Not solved"); // Assert.AreEqual(expectedColors, bagOptions); }