Kaynağa Gözat

2004-08-31 Nick Drochak <[email protected]>

	* BooleanTest.cs: Eliminate compiler warning.
	* DateTimeTest.cs: Allow csc to compile.
	* TypeTest.cs: Use unsafe for pointers.

svn path=/trunk/mcs/; revision=33088
Nick Drochak 21 yıl önce
ebeveyn
işleme
01e2ba96d3

+ 0 - 1
mcs/class/corlib/Test/System/BooleanTest.cs

@@ -76,7 +76,6 @@ public class BooleanTest : Assertion {
 	public void TestEqualOperator ()
 	{
 		Boolean t=true, f=false;
-		string s = "What Ever";
 		Assert ("t==t", t==t);
 		Assert ("f==f", f==f);
 		Assert ("t!=f", t!=f);

+ 6 - 0
mcs/class/corlib/Test/System/ChangeLog

@@ -1,3 +1,9 @@
+2004-08-31  Nick Drochak <[email protected]>
+
+	* BooleanTest.cs: Eliminate compiler warning.
+	* DateTimeTest.cs: Allow csc to compile.
+	* TypeTest.cs: Use unsafe for pointers.
+
 2004-08-26  Zoltan Varga  <[email protected]>
 
 	* TypeTest.cs: Add regression test for bug #63768.

+ 1 - 1
mcs/class/corlib/Test/System/DateTimeTest.cs

@@ -562,7 +562,7 @@ public class DateTimeTest : Assertion
 		AssertEquals("Dash04", 24, t1.Day);
 
 		// Bug 63376
-		t1 = DateTime.ParseExact ("18Aug2004 12:33:00", "ddMMMyyyy hh:mm:ss", new System.Globalization.CultureInfo ("en-US"));
+		t1 = DateTime.ParseExact ("18Aug2004 12:33:00", "ddMMMyyyy hh:mm:ss", new CultureInfo ("en-US"));
 		AssertEquals ("hh allows 12, though it's useless", 0, t1.Hour);
 	}
 

+ 1 - 1
mcs/class/corlib/Test/System/TypeTest.cs

@@ -157,7 +157,7 @@ namespace MonoTests.System
 		}
 
 		[Test]
-		public void TestName () {
+		unsafe public void TestName () {
 			AssertEquals ("Void*", typeof (void*).Name);
 			AssertEquals ("Void**", typeof (void**).Name);
 		}