public void GetPreCompileJS() { HandleBars.Compile("test", template); var test = HandleBars.GetPreCompileJS(); // note: yui compress can gain 50% before gzip, 70% after. }
public void CompileTemplate() { HandleBars.Compile("test", template); // // TODO: Add test logic here // }
public void ExecuteCompiledTemplate() { // // TODO: Add test logic here // HandleBars.Compile("test", template); HandleBars.Run("test", new { title = "My New Post", body = "This is my first post!" }); }
public void RemoveTemplate() { // // TODO: Add test logic here // HandleBars.Compile("test", template); HandleBars.Delete("test"); }
public void SimpleRiseTests() { HandleBars test = new HandleBars(0); for (int i = 0; i < 10; i++) { Assert.AreEqual(i, test.Position()); test.Rise(); } test.Rise(); Assert.AreEqual(10, test.Position()); }
public void SimpleConstructorTest() { HandleBars test = new HandleBars(5); Assert.IsTrue(5 == test.Position()); }