public void TestStringToType()
        {
            // create entry in db
            o1 = new Dog();
            Type type = Type.GetType("Gentle.Framework.Tests.Dog");

            Assert.IsNotNull(type, "Unable to create type from string.");
            type = Type.GetType(o1.GetType().FullName);
            Assert.IsNotNull(type, "Unable to create type from string.");
        }
Beispiel #2
0
		public void TestStringToType()
		{
			// create entry in db
			o1 = new Dog();
			Type type = Type.GetType( "Gentle.Framework.Tests.Dog" );
			Assert.IsNotNull( type, "Unable to create type from string." );
			type = Type.GetType( o1.GetType().FullName );
			Assert.IsNotNull( type, "Unable to create type from string." );
		}