public void When_passing_code_Should_Execute_It_and_return_text() { ILocalizationService localizationService = new ResourceLocalizationService(); IViewExecutor ironRubyViewExecutor = new IronRubyViewExecutor(); var parser = new IronRubyViewParser(); var code = parser.Parse(_templatePath); var model = new {ftuValue = "100 USD",ftuUrl="LaunchPage",idModifier = "modifier"}; ironRubyViewExecutor.SetGlobalVariables("localization",localizationService); ironRubyViewExecutor.SetGlobalVariables("lang","en"); var html = ironRubyViewExecutor.Execute(RubyCode, model); Assert.That(html, Is.EqualTo(HtmlCode)); }