public void EvalScriptRazor() { string script = @"Hi @Model.Name, Time is @DateTime.Now.ToString(""MMM dd, yyyy HH:mm:ss"") "; var parser = new ScriptParser(); string result = parser.EvaluateRazorScript(script, new Globals { Name = "Rick" }); Assert.IsNotNull(result, "Parser failed to parse script: " + parser.ErrorMessage); Console.WriteLine(result); }