8 public class WvTestTest
10 [Test
] public void test_wvtest()
22 WVPASSEQ("foo", "foo");
24 Object obj
= new Object();
29 WVPASSNE("foo", "blue");
30 WVPASSNE("", "notempty");
33 WVPASSNE(obj
, new Object());
34 WVPASSNE(new Object(), new Object());
37 // these are only public to get rid of the "not assigned to" warnings.
38 // we don't assign to them because that's the whole point of the test.
39 public DateTime null_date
;
40 public TimeSpan null_span
;
42 [Test
] public void test_dates_and_spans()
44 WVPASS(null_date
== DateTime
.MinValue
);
45 WVPASSEQ(null_date
, DateTime
.MinValue
);
46 WVPASS(null_span
== TimeSpan
.Zero
);
47 WVPASSEQ(null_span
, TimeSpan
.Zero
);
49 TimeSpan t
= TimeSpan
.FromMinutes(60*24*7);
50 WVPASSEQ(t
.ToString(), "7.00:00:00");
51 WVPASSEQ(t
.Ticks
, 7*24*60*60*10000000L);
52 WVPASS(t
.TotalMinutes
== 7*24*60);
53 WVPASSEQ(t
.TotalMinutes
, 7*24*60);
54 WVPASSEQ(t
.TotalSeconds
, 7*24*60*60);
55 WVPASSEQ(t
.Minutes
, 0);