* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / Microsoft.Web.Services / Test / Microsoft.Web.Services.Timestamp / AllTests.cs
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 //
9
10 using System;
11 using Microsoft.Web.Services.Timestamp;
12 using NUnit.Framework;
13
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 {
18
19         public class AllTests {
20
21                 // some missing overloads for the tests
22
23                 public static void AssertEquals (string message, DateTime expected, DateTime actual) 
24                 {
25                         // Format before compare (Timestamp doesn't have a good resolution)
26                         Assertion.Assert (message, (expected.ToString (WSTimestamp.TimeFormat) == actual.ToString (WSTimestamp.TimeFormat)));
27                 }
28
29                 public static void AssertEquals (string message, long expected, long actual) 
30                 {
31                         Assertion.Assert (message, (expected == actual));
32                 }
33         }
34 }