2 // MonoTests.MS.Web.Services.Timestamp.AllTests.cs
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
11 using Microsoft.Web.Services.Timestamp;
12 using NUnit.Framework;
14 // note: due to compiler confusion between classes and namespace (like Timestamp)
15 // I renamed the test namespace from "MonoTests.Microsoft.Web.Services.Timestamp"
16 // to "MonoTests.MS.Web.Services.Timestamp".
17 namespace MonoTests.MS.Web.Services.Timestamp {
19 public class AllTests {
21 // some missing overloads for the tests
23 public static void AssertEquals (string message, DateTime expected, DateTime actual)
25 // Format before compare (Timestamp doesn't have a good resolution)
26 Assertion.Assert (message, (expected.ToString (WSTimestamp.TimeFormat) == actual.ToString (WSTimestamp.TimeFormat)));
29 public static void AssertEquals (string message, long expected, long actual)
31 Assertion.Assert (message, (expected == actual));