public void ProxyNewInstance() { using (IAtTemplate template = new AtTemplateProxy( @"@global int number = 1; @end_global @(number++)")) { template.Parse(); Assert.AreEqual("1\r\n", template.Render()); IAtTemplateInstance instance1 = template.NewInstance(); Assert.AreEqual("1\r\n", instance1.Render()); } }