Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public void GetHamlNode_TagSubTypes_ThrowsHamlUnknownRuleException(HamlRuleEnum rule, Type nodeType)
        {
            var line = new HamlLine("Blah", rule, "", 0);

            Assert.Throws <HamlUnknownRuleException>(() => HamlNodeFactory.GetHamlNode(line));
        }