Esempio n. 1
0
        public void It_Can_Pass_Spec_Tests(SpecTest data)
        {
            OutputStream.WriteLine(data.name);
            var stubble = new StubbleVisitorRenderer();
            var output  = data.partials != null?stubble.Render(data.template, data.data, data.partials) : stubble.Render(data.template, data.data);

            OutputStream.WriteLine("Expected \"{0}\", Actual \"{1}\"", data.expected, output);
            Assert.Equal(data.expected, output);
        }
Esempio n. 2
0
 public new void It_Can_Pass_Spec_Tests(SpecTest data)
 {
     base.It_Can_Pass_Spec_Tests(data);
 }
Esempio n. 3
0
 public new void It_Can_Pass_Spec_Tests(SpecTest data)
 {
     base.It_Can_Pass_Spec_Tests(data);
 }
Esempio n. 4
0
        public void It_Can_Pass_Spec_Tests(SpecTest data)
        {
            var stubble = new StubbleRenderer();
            var output = data.Partials != null ? stubble.Render(data.Template, data.Data, data.Partials) : stubble.Render(data.Template, data.Data);

            OutputStream.WriteLine("Expected \"{0}\", Actual \"{1}\"", data.Expected, output);
            var dic = stubble.Writer.Cache as IDictionary;
            Assert.Equal(data.Expected, output);
        }