Browse Source

New files to begin the System.Data.SqlTypes test structure.

svn path=/trunk/mcs/; revision=4264
Tim Coleman 24 years ago
parent
commit
47837d652c

+ 27 - 0
mcs/class/System.Data/Test/System.Data.SqlTypes/AllTests.cs

@@ -0,0 +1,27 @@
+// Author:
+//   Tim Coleman ([email protected])
+//
+// (C) Copyright 2002 Tim Coleman
+//
+
+using NUnit.Framework;
+
+namespace MonoTests.System.Data.SqlTypes
+{
+	/// <summary>
+	///   Combines all unit tests for the System.Data.dll assembly
+	///   into one test suite.
+	/// </summary>
+	public class AllTests : TestCase
+	{
+		public AllTests (string name) : base (name) {}
+
+		public static ITest Suite {
+			get {
+				TestSuite suite =  new TestSuite ();
+				suite.AddTest (new TestSuite (typeof (SqlInt32Test)));
+				return suite;
+			}
+		}
+	}
+}

+ 35 - 0
mcs/class/System.Data/Test/System.Data.SqlTypes/SqlInt32Test.cs

@@ -0,0 +1,35 @@
+// SqlInt32Test.cs - NUnit Test Cases for System.Data.SqlTypes.SqlInt32
+//
+// Tim Coleman ([email protected])
+//
+// (C) Tim Coleman
+// 
+
+using NUnit.Framework;
+using System;
+using System.Data.SqlTypes;
+
+namespace MonoTests.System.Data.SqlTypes
+{
+
+	public class SqlInt32Test : TestCase {
+		
+		public SqlInt32Test() : base ("System.Data.SqlTypes.SqlInt32") {}
+		public SqlInt32Test(string name) : base(name) {}
+
+		protected override void SetUp() {}
+
+		protected override void TearDown() {}
+
+		public static ITest Suite {
+			get { 
+				return new TestSuite(typeof(SqlInt32)); 
+			}
+		}
+
+		public void TestCreate ()  {
+			SqlInt32 foo = new SqlInt32 (0);
+			AssertEquals( "Test explicit cast to int", (int)foo, 0);
+		}
+	}
+}