public void CaseInsensitiveSearchesForClassOrigins() { var gateway = new ClassOriginYamlGateway(ClassOriginYamlFile.ParseYaml()); Assert.Greater(gateway.GetClassOriginOptions("Barbarian").All().Count(), 0); Assert.Greater(gateway.GetClassOriginOptions("BARD").All().Count(), 0); }
public void LoadsUpClassOriginFromYamlFileWithExpectedAttributes() { var gateway = new ClassOriginYamlGateway(ClassOriginYamlFile.ParseYaml()); var bardOriginTable = gateway.GetClassOriginOptions("bard"); var entry = bardOriginTable.All().First().Option; Assert.AreEqual("Celebrity", entry.Name); Assert.AreEqual(10, entry.Weighting); Assert.IsTrue(entry.Traits.Contains("Influence")); }