Example #1
0
        TestSetGetValue6()
        {
            // Add random keys and tags for each of N MockMetadataProvider objects.

            // Create an array of MockMetadataProvider objects and set random keys
            // and tags on them.

            const Int32 MockMetadataProviderObjects = 10000;

            MockMetadataProvider [] aoMockMetadataProvider =
                new MockMetadataProvider[MockMetadataProviderObjects];

            for (Int32 i = 0; i < MockMetadataProviderObjects; i++)
            {
                MockMetadataProvider oMockMetadataProvider =
                    aoMockMetadataProvider[i] = new MockMetadataProvider();

                MetadataUtil.SetRandomMetadata(
                    oMockMetadataProvider, true, true, i);
            }

            // Check the values, backwards.

            for (Int32 i = MockMetadataProviderObjects - 1; i >= 0; i--)
            {
                MetadataUtil.CheckRandomMetadata(
                    aoMockMetadataProvider[i], true, true, i);
            }
        }