public DataCollectorInformationTests()
        {
            this.envVarList        = new List <KeyValuePair <string, string> >();
            this.mockDataCollector = new Mock <DataCollector2>();
            this.mockDataCollector.As <ITestExecutionEnvironmentSpecifier>().Setup(x => x.GetTestExecutionEnvironmentVariables()).Returns(this.envVarList);
            this.mockDataCollector.Protected().Setup("Dispose", true);
            var mockMessageSink = new Mock <IMessageSink>();

            this.dataCollectorInfo = new DataCollectorInformation(
                this.mockDataCollector.Object,
                null,
                new DataCollectorConfig(typeof(CustomDataCollector)),
                null,
                new Mock <IDataCollectionAttachmentManager>().Object,
                new TestPlatformDataCollectionEvents(),
                mockMessageSink.Object);
        }