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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Drochak <nickd@mono-cvs.ximian.com>2002-10-28 11:50:49 +0300
committerNick Drochak <nickd@mono-cvs.ximian.com>2002-10-28 11:50:49 +0300
commitca590b670e09f6916a9a5fb8ef32447edfad8174 (patch)
tree085d594aa720c48754bf5704c303741fb9afb044 /mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs
parenta8347490150593ba4431fd2acfaca9045050e4a0 (diff)
2002/10/28 Nick Drochak <ndrochak@gol.com>
* DateAndTimeTest.cs: Make tests pass on Windows with .NET svn path=/trunk/mcs/; revision=8613
Diffstat (limited to 'mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs')
-rw-r--r--mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs b/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs
index fb1079787b2..0c8f38436f7 100644
--- a/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs
+++ b/mcs/class/Microsoft.VisualBasic/Test/DateAndTimeTest.cs
@@ -68,7 +68,7 @@ namespace MonoTests.Microsoft.VisualBasic
// should be same time within a reasonable tolerance
Assert("#TI01", secNow >= secTimer);
- Assert("#TI02", secTimer2 >= secNow);
+ Assert("#TI02: SecTimer2=" + secTimer2 + " secNow=" + secNow, secTimer2 >= secNow);
// third timer should be greater than the first
Assert("#TI03", secTimer3 > secTimer);
@@ -278,7 +278,7 @@ namespace MonoTests.Microsoft.VisualBasic
catch (Exception e) {
Fail ("Unexpected exception:" + e);
}
- AssertEquals("#TV03", new DateTime(1, 1, 1, 16, 35, 17), DateAndTime.TimeValue("4:35:17 PM"));
+ AssertEquals("#TV03", new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 16, 35, 17), DateAndTime.TimeValue("4:35:17 PM"));
}
public void TestYear () {