Пример #1
0
 public void TearDown()
 {
     TearDownCore();
     Thread.CurrentThread.CurrentCulture   = culture;
     Thread.CurrentThread.CurrentUICulture = uiCulture;
     this.collector = null;
 }
Пример #2
0
 public void Setup()
 {
     SetupCore();
     this.culture   = CultureInfo.CurrentCulture;
     this.uiCulture = CultureInfo.CurrentUICulture;
     Thread.CurrentThread.CurrentCulture   = new CultureInfo("en-US", false);
     Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US", false);
     this.collector = new DesktopEnvironmentCollector(new DefaultTestClientConfiguration());
     Assert.AreEqual(10, this.collector.Collectors.Count);
     Assert.AreEqual(typeof(FrameworkVersionsCollector), this.collector.Collectors[8].GetType());
     this.collector.Collectors.RemoveAt(8);
     Assert.AreEqual(typeof(Win32GuiResourcesCollector), this.collector.Collectors[5].GetType());
     this.collector.Collectors.RemoveAt(5);
     Assert.AreEqual(typeof(DisplayCollector), this.collector.Collectors[4].GetType());
     this.collector.Collectors.RemoveAt(4);
     Assert.AreEqual(typeof(MemoryCollector), this.collector.Collectors[3].GetType());
     this.collector.Collectors.RemoveAt(3);
     Assert.AreEqual(typeof(DebuggerCollector), this.collector.Collectors[2].GetType());
     this.collector.Collectors.RemoveAt(2);
     Assert.AreEqual(typeof(VirtualMachineCollector), this.collector.Collectors[1].GetType());
     this.collector.Collectors.RemoveAt(1);
 }