[longomatch] Fix TimelineEvent tests for different locales
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix TimelineEvent tests for different locales
- Date: Wed, 18 Mar 2015 14:37:25 +0000 (UTC)
commit fcfac701f9f82c50c7a4a333c599e50837c47eec
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 10 10:44:04 2015 +0100
Fix TimelineEvent tests for different locales
Tests/Core/Store/TestTimelineEvent.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Tests/Core/Store/TestTimelineEvent.cs b/Tests/Core/Store/TestTimelineEvent.cs
index 247553d..3bf9668 100644
--- a/Tests/Core/Store/TestTimelineEvent.cs
+++ b/Tests/Core/Store/TestTimelineEvent.cs
@@ -81,7 +81,8 @@ namespace Tests.Core.Store
TimelineEvent evt = CreateTimelineEvent ();
Assert.AreEqual (evt.HasDrawings, false);
Assert.AreEqual (evt.Color, evt.EventType.Color);
- Assert.AreEqual (evt.Description, "Play\ntest\n0:01,000 - 0:02,000 (2,3X)");
+ Assert.AreEqual (evt.Description,
+ String.Format ("Play\ntest\n0:01,000 - 0:02,000 ({0}X)", 2.3));
}
[Test()]
@@ -99,7 +100,8 @@ namespace Tests.Core.Store
public void TestTimesDescription ()
{
TimelineEvent evt = CreateTimelineEvent ();
- Assert.AreEqual (evt.TimesDesription (), "0:01,000 - 0:02,000 (2,3X)");
+ Assert.AreEqual (evt.TimesDesription (),
+ String.Format ("0:01,000 - 0:02,000 ({0})", 2.3));
evt.Rate = 1;
Assert.AreEqual (evt.TimesDesription (), "0:01,000 - 0:02,000");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]