Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AllTests.cs « Microsoft.Web.Services.Timestamp « Test « Microsoft.Web.Services « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a5e496864ef471172473a2f54acd1613bc8ec6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// MonoTests.MS.Web.Services.Timestamp.AllTests.cs
//
// Author:
//	Sebastien Pouliot (spouliot@motus.com)
//
// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
//

using System;
using Microsoft.Web.Services.Timestamp;
using NUnit.Framework;

// note: due to compiler confusion between classes and namespace (like Timestamp)
// I renamed the test namespace from "MonoTests.Microsoft.Web.Services.Timestamp"
// to "MonoTests.MS.Web.Services.Timestamp".
namespace MonoTests.MS.Web.Services.Timestamp {

	public class AllTests {

		// some missing overloads for the tests

		public static void AssertEquals (string message, DateTime expected, DateTime actual) 
		{
			// Format before compare (Timestamp doesn't have a good resolution)
			Assertion.Assert (message, (expected.ToString (WSTimestamp.TimeFormat) == actual.ToString (WSTimestamp.TimeFormat)));
		}

		public static void AssertEquals (string message, long expected, long actual) 
		{
			Assertion.Assert (message, (expected == actual));
		}
	}
}