private void AssertStoredType(IStoredClass clazz, string fieldName, Type type)
        {
            IStoredField field = clazz.StoredField(fieldName, null);

            Assert.AreEqual(type.FullName, CrossPlatformServices.SimpleName(field.GetStoredType
                                                                                ().GetName()));
        }
            public void OnEvent(object sender, ClassEventArgs args)
            {
                var classEventArgs = args;

                Assert.AreEqual(typeof(Data).FullName, CrossPlatformServices
                                .SimpleName(classEventArgs.ClassMetadata().GetName()));
                eventFlag.eventOccurred = true;
            }
Exemple #3
0
            public void OnEvent(object sender, Db4objects.Db4o.Events.ClassEventArgs args)
            {
                ClassEventArgs classEventArgs = (ClassEventArgs)args;

                Assert.AreEqual(typeof(ClassRegistrationEventsTestCase.Data).FullName, CrossPlatformServices
                                .SimpleName(classEventArgs.ClassMetadata().GetName()));
                eventFlag.eventOccurred = true;
            }