Update of /cvsroot/netreflector/NetReflector/src/NetReflector.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6408/src/NetReflector.Test
Modified Files:
NetReflectorTypeTableTest.cs
Log Message:
attempting to fix long standing broken build by sorting members
Index: NetReflectorTypeTableTest.cs
===================================================================
RCS file: /cvsroot/netreflector/NetReflector/src/NetReflector.Test/NetReflectorTypeTableTest.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** NetReflectorTypeTableTest.cs 8 Sep 2005 01:07:47 -0000 1.7
--- NetReflectorTypeTableTest.cs 8 Sep 2005 03:47:09 -0000 1.8
***************
*** 11,14 ****
--- 11,16 ----
public class NetReflectorTypeTableTest
{
+ private const int NumberOfReflectorTypesInAssembly = 11;
+
[Test]
public void AddTypeToTypeTable()
***************
*** 27,31 ****
table.Add(Assembly.GetExecutingAssembly());
! Assert.AreEqual(10, table.Count);
Assert.AreEqual(typeof (TestClass), table["reflectTest"].Type);
Assert.AreEqual(typeof (TestInnerClass), table["inner"].Type);
--- 29,33 ----
table.Add(Assembly.GetExecutingAssembly());
! Assert.AreEqual(NumberOfReflectorTypesInAssembly, table.Count);
Assert.AreEqual(typeof (TestClass), table["reflectTest"].Type);
Assert.AreEqual(typeof (TestInnerClass), table["inner"].Type);
***************
*** 44,48 ****
table.Add(Assembly.GetExecutingAssembly());
! Assert.AreEqual(10, table.Count);
}
--- 46,50 ----
table.Add(Assembly.GetExecutingAssembly());
! Assert.AreEqual(NumberOfReflectorTypesInAssembly, table.Count);
}
***************
*** 76,80 ****
NetReflectorTypeTable table = new NetReflectorTypeTable();
table.Add(Directory.GetCurrentDirectory(), "*Test.dll");
! Assert.AreEqual(11, table.Count);
Assert.IsNotNull(table["plugin"], "Plugin type not found");
Assert.IsNotNull(table["array-test"], "Array-test type not found");
--- 78,82 ----
NetReflectorTypeTable table = new NetReflectorTypeTable();
table.Add(Directory.GetCurrentDirectory(), "*Test.dll");
! Assert.AreEqual(NumberOfReflectorTypesInAssembly + 1, table.Count);
Assert.IsNotNull(table["plugin"], "Plugin type not found");
Assert.IsNotNull(table["array-test"], "Array-test type not found");
|