diff API/Objects/UnitTypeTest.cs @ 140:2ae80631ec9c

* Remove duplicate equality test code now that Mike Krueger fixed MonoDevelop bug 677228 (https://bugzilla.novell.com/show_bug.cgi?id=677228#c5) no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Thu, 28 Apr 2011 13:36:16 +0000
parents 081b48413f6d
children c323770e61c2
line wrap: on
line diff
--- a/API/Objects/UnitTypeTest.cs	Tue Apr 26 19:47:36 2011 +0000
+++ b/API/Objects/UnitTypeTest.cs	Thu Apr 28 13:36:16 2011 +0000
@@ -15,51 +15,6 @@
 	[TestFixture()]
 	public class UnitTypeTest : AbstractEqualityTest<UnitType>
 	{
-		//FIXME We shouldn't duplicate these tests, but it is broken at the moment
-		[Test]
-		public void TestEquality()
-		{
-			Assert.AreEqual(GetObject(), GetSameObject());
-			Assert.AreEqual(GetSameObject(), GetObject());
-		}
-
-		[Test]
-		public void TestInequality()
-		{
-			Assert.AreNotEqual(GetObject(), GetDifferentObject());
-			Assert.AreNotEqual(GetSameObject(), GetDifferentObject());
-			Assert.AreNotEqual(GetDifferentObject(), GetObject());
-			Assert.AreNotEqual(GetDifferentObject(), GetSameObject());
-		}
-
-		[Test]
-		public void TestReflexiveEquality()
-		{
-			Assert.AreEqual(GetObject(), GetObject());
-			Assert.AreEqual(GetSameObject(), GetSameObject());
-			Assert.AreEqual(GetDifferentObject(), GetDifferentObject());
-		}
-
-		[Test]
-		public void TestOtherInequality()
-		{
-			MethodInfo[] methodInfo = GetType().GetMethods();
-			UnitType obj = GetObject();
-
-			foreach (MethodInfo method in methodInfo)
-			{
-				if (method.Name.StartsWith("GetOtherDifferent"))
-				{
-					UnitType otherObj = (UnitType)method.Invoke(this, new object[0]);
-					Assert.AreNotEqual(obj, otherObj, "Objects equal for "+method.Name);
-					Assert.AreNotEqual(otherObj, obj, "Objects equal for "+method.Name);
-				}
-			}
-		}
-
-
-
-
 		[Test()]
 		public void TestSettingMainCategorySetsCategoriesCollection()
 		{