public void GetHamlNode_DifferentHamlLineTypes_ReturnsCorrectHamlNode(HamlRuleEnum rule, Type nodeType) { var line = new HamlLine("Blah", rule, "", 0); var result = HamlNodeFactory.GetHamlNode(line); Assert.That(result, Is.InstanceOf(nodeType)); }
public void GetHamlNode_TagSubTypes_ThrowsHamlUnknownRuleException(HamlRuleEnum rule, Type nodeType) { var line = new HamlLine("Blah", rule, "", 0); Assert.Throws <HamlUnknownRuleException>(() => HamlNodeFactory.GetHamlNode(line)); }