Esempio n. 1
0
        public void Walk_SingleLineFile_CallsClassBuilderBuild()
        {
            // Arrange
            const string className = "ClassName";
            var document = new HamlTreeParser(new NHaml4.IO.HamlFileLexer()).ParseDocumentSource("Simple content");

            // Act
            var builder = new Mock<ITemplateClassBuilder>();

            new HamlDocumentWalker(builder.Object).Walk(document, className);

            // Assert
            builder.Verify(x => x.Build(className));
        }
Esempio n. 2
0
 public void Setup()
 {
     _parser = new HamlTreeParser(new HamlFileLexer());
 }