**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.Web.Services / Test / Microsoft.Web.Services.Timestamp / AllTests.cs
blob7a5e496864ef471172473a2f54acd1613bc8ec6e
1 //
2 // MonoTests.MS.Web.Services.Timestamp.AllTests.cs
3 //
4 // Author:
5 // Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
10 using System;
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));