Пример #1
0
		public virtual void TestDropClassIndex()
		{
			ClassMetadataTestCase.Item item = new ClassMetadataTestCase.Item();
			Store(item);
			AssertOccurrences(typeof(ClassMetadataTestCase.Item), 1);
			ClassMetadata classMetadata = Container().ClassMetadataForObject(item);
			classMetadata.DropClassIndex();
			AssertOccurrences(typeof(ClassMetadataTestCase.Item), 0);
		}
Пример #2
0
        public virtual void TestDropClassIndex()
        {
            ClassMetadataTestCase.Item item = new ClassMetadataTestCase.Item();
            Store(item);
            AssertOccurrences(typeof(ClassMetadataTestCase.Item), 1);
            ClassMetadata classMetadata = Container().ClassMetadataForObject(item);

            classMetadata.DropClassIndex();
            AssertOccurrences(typeof(ClassMetadataTestCase.Item), 0);
        }