Specified culture to make test run green on non-us systems.

This commit is contained in:
lhaussknecht 2018-11-05 21:17:07 +01:00
parent 11d4396543
commit c4615ef125
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
@ -1366,7 +1367,8 @@ Your order total was: {{Total:C}}
{{/if}} {{/if}}
{{/with}}"; {{/with}}";
Generator generator = compiler.Compile(format); Generator generator = compiler.Compile(format);
string result = generator.Render(new
string result = generator.Render(CultureInfo.GetCultureInfo("en-US"), new
{ {
Customer = new { FirstName = "Bob" }, Customer = new { FirstName = "Bob" },
Order = new Order = new