public void InstallDefaultPerformanceCounters() { if (null == _testData) { InitializeTest(); } PerformanceCounterInstall.CreateCounters(_testData.GetType(), Assembly.GetAssembly(typeof(TestData)), PerformanceCounterInstall.DefaultPerformanceCounterCategory); Assert.IsTrue(PerformanceCounterCategory.Exists(PerformanceCounterInstall.DefaultPerformanceCounterCategory)); }
public void InstallFtpFolderPerformanceCounters() { PerformanceCounterInstall.CreateCounters(typeof(FTPFolder), Assembly.GetAssembly(typeof(FTPClient)), FTPFolder.PerfofmanceCounterCategory); Assert.IsTrue(PerformanceCounterCategory.Exists(FTPFolder.PerfofmanceCounterCategory)); }