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(); }