Example #1
0
 public void Constructor_ExtractsContentCorrectly(string testString, string expectedContent)
 {
     HamlRuleFactory.ParseHamlRule(ref testString);
     Assert.AreEqual(expectedContent, testString);
 }
Example #2
0
        public void Constructor_CalculatesRuleTypeCorrectly(string testString, HamlRuleEnum expectedRule)
        {
            var rule = HamlRuleFactory.ParseHamlRule(ref testString);

            Assert.AreEqual(expectedRule, rule);
        }