Esempio n. 1
0
        public static void CounterCreationDataCollection_CopyTo()
        {
            CounterCreationData[]         ccds = { new CounterCreationData("Simple1", "Simple Help", PerformanceCounterType.RawBase), new CounterCreationData("Simple2", "Simple Help", PerformanceCounterType.RawBase) };
            CounterCreationDataCollection ccdc = new CounterCreationDataCollection(ccds);

            CounterCreationData[] ccds2 = new CounterCreationData[2];

            ccdc.CopyTo(ccds2, 0);

            Assert.Equal(ccdc[0], ccds2[0]);
        }