Browse Source

Use en-US for culture-dependent tests.

pull/419/head
Daniel Grunwald 11 years ago
parent
commit
564957c237
  1. 5
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/Expressions/Aggregates/SumAggregateFixture.cs

5
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Test/ICSharpCode.Reporting.Test/src/Expressions/Aggregates/SumAggregateFixture.cs

@ -27,6 +27,7 @@ using NUnit.Framework; @@ -27,6 +27,7 @@ using NUnit.Framework;
namespace ICSharpCode.Reporting.Test.Expressions.Aggregates
{
[TestFixture]
[SetCulture("en-US")]
public class SumAggregate
{
@ -51,7 +52,7 @@ namespace ICSharpCode.Reporting.Test.Expressions.Aggregates @@ -51,7 +52,7 @@ namespace ICSharpCode.Reporting.Test.Expressions.Aggregates
{
var script = "= sum('doubleValue')";
var result = Evaluate(script);
Assert.That (result.Text,Is.EqualTo("408,25"));
Assert.That (result.Text,Is.EqualTo("408.25"));
Assert.That(Convert.ToDouble(result.Text),Is.TypeOf(typeof(double)));
}
@ -61,7 +62,7 @@ namespace ICSharpCode.Reporting.Test.Expressions.Aggregates @@ -61,7 +62,7 @@ namespace ICSharpCode.Reporting.Test.Expressions.Aggregates
{
var script = "= 'myText ' + sum('doubleValue')";
var result = Evaluate(script);
Assert.That (result.Text,Is.EqualTo("myText 408,25"));
Assert.That (result.Text,Is.EqualTo("myText 408.25"));
}

Loading…
Cancel
Save