public void ShouldUseInstantiatorThatHasBeenSet()
		{
			TestInstantiator instantiator = new TestInstantiator();
			table = NetReflectorTypeTable.CreateDefault(instantiator);
			ReadTestHashClassContainingElements();
			Assert.AreEqual(4, instantiator.instantiateCallCount);
		}
		public void ShouldUseInstantiatorThatHasBeenSet()
		{
			TestInstantiator instantiator = new TestInstantiator();
			table = NetReflectorTypeTable.CreateDefault(instantiator);
			ReadCollectionTestClass();
			Assert.AreEqual(4, instantiator.instantiateCallCount);
		}
		public void ShouldUseCustomInstantiatorIfUsed()
		{
			TestInstantiator instantiator = new TestInstantiator();
			NetReflectorTypeTable table = new NetReflectorTypeTable(instantiator);
			table.Add(typeof (TestClass));

			Assert.AreEqual(instantiator, ((XmlTypeSerialiser) table["reflectTest"]).Instantiator);
		}