public void testGetUserTypeIdentifierWithUnknownType() { var ctx = new SafeConfigurablePofContext(); Assert.IsTrue(ctx.GetUserTypeIdentifier(typeof(NestedType)) == SafeConfigurablePofContext.TYPE_PORTABLE); // COH-5584: repeat the test to verify that NestedType is now // cached in ConfigurablePofContext. Assert.IsTrue(ctx.GetUserTypeIdentifier(typeof(NestedType)) == SafeConfigurablePofContext.TYPE_PORTABLE); }
public void testGetUserTypeIdentifierWithUnknownObject() { var ctx = new SafeConfigurablePofContext(); Assert.IsTrue(ctx.GetUserTypeIdentifier(new NestedType()) == SafeConfigurablePofContext.TYPE_PORTABLE); }
public void testGetUserTypeIdentifierWithUnknownTypeName() { var ctx = new SafeConfigurablePofContext(); Assert.IsTrue(ctx.GetUserTypeIdentifier(typeof(NestedType).AssemblyQualifiedName) == SafeConfigurablePofContext.TYPE_PORTABLE); }
public void testGetUserTypeIdentifierWithPofObject() { var ctx = new SafeConfigurablePofContext(); ctx.GetUserTypeIdentifier(new HashDictionary()); }
public void testGetUserTypeIdentifierWithNullObject() { var ctx = new SafeConfigurablePofContext(); ctx.GetUserTypeIdentifier((object)null); }
public void testGetUserTypeIdentifierWithKnownTypeName() { var ctx = new SafeConfigurablePofContext(); Assert.IsTrue(ctx.GetUserTypeIdentifier(typeof(Exception).AssemblyQualifiedName) == 0); }
public void testGetUserTypeIdentifierWithPofTypeName() { var ctx = new SafeConfigurablePofContext(); ctx.GetUserTypeIdentifier(typeof(HashDictionary).AssemblyQualifiedName); }
public void testGetUserTypeIdentifierWithNullTypeName() { var ctx = new SafeConfigurablePofContext(); ctx.GetUserTypeIdentifier((String)null); }
public void testGetUserTypeIdentifierWithPofType() { var ctx = new SafeConfigurablePofContext(); ctx.GetUserTypeIdentifier(typeof(HashDictionary)); }