[hyena] Fixed unit test



commit a07a5e603dfc6b42eed2ed477afe0fd915f5a4c3
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Mon Feb 15 18:32:49 2010 +1100

    Fixed unit test

 src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs b/src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs
index 36fdac1..2851e14 100644
--- a/src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs
+++ b/src/Hyena/Hyena.Metrics/Tests/MetricsTests.cs
@@ -49,8 +49,8 @@ namespace Hyena.Tests
             metrics.AddDefaults ();
             Assert.IsTrue (metrics.Count > 0);
 
-            string metrics_str = metrics.ToString ();
-            Assert.IsTrue (metrics_str.Contains ("ID: myuniqueid"));
+            string metrics_str = metrics.ToJsonString ();
+            Assert.IsTrue (metrics_str.Contains ("\"ID\" : myuniqueid"));
 
             // tests/Makefile.am runs the tests with Locale=it_IT
             Assert.IsTrue (metrics_str.Contains ("it-IT"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]