Exemplo n.º 1
0
        public void CloseTest()
        {
            Collector collector = new Collector();
            int       result    = collector.Collect();

            collector.Close();
            Assert.IsFalse(CustomTaskManager.IsRunning);
        }
Exemplo n.º 2
0
        public void CollectTest1()
        {
            Collector            collector            = new Collector();
            ConfigurationOptions configurationOptions = new ConfigurationOptions();

            configurationOptions.VersionOption = true;
            configurationOptions.GatherType    = FileTypesEnum.trace.ToString();
            Log.MessageLogged += Log_MessageLogged;
            configurationOptions.Validate();

            int    result  = collector.Collect(configurationOptions);
            string results = string.Join <string>(Environment.NewLine, messages.ToArray());

            collector.Close();
            Assert.IsTrue(results.Contains("CheckReleaseVersion:"));
            messages.Clear();
        }