Merge pull request #85 from lhaussknecht/feature/Culture_Specific_Fix

Specified culture to make test run green on non-us systems.
This commit is contained in:
Travis Parks 2018-11-05 15:25:48 -05:00 committed by GitHub
commit eada46d86b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

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