public void CheckTransmission_should_send_a_diagnostic_message_and_receive_a_status_message_response()
        {
            var stubTelemetryConnection = new StubTelemetryConnection();
            stubTelemetryConnection.StubGetOnlineStatus(true);

            var mockTelemetryDataChannel = new MockTelemetryDataChannel();
            mockTelemetryDataChannel.SetExpectedCallToSend(TelemetryDataChannel.DiagnosticMessage);
            mockTelemetryDataChannel.SetExpectedCallToReceive("status report");

            var target = new TelemetryDiagnosticControls(stubTelemetryConnection, mockTelemetryDataChannel);


            target.CheckTransmission();


            mockTelemetryDataChannel.Verify();
            Assert.AreEqual(target.DiagnosticInfo, "status report", "diagnostic info");
        }
        public void CheckTransmission_should_send_a_diagnostic_message_and_receive_a_status_message_response()
        {
            StubTelemetryConnection stubTelemetryConnection = new StubTelemetryConnection();

            stubTelemetryConnection.StubGetOnlineStatus(true);

            MockTelemetryDataChannel mockTelemetryDataChannel = new MockTelemetryDataChannel();

            mockTelemetryDataChannel.SetExpectedCallToSend(TelemetryDataChannel.DiagnosticMessage);
            mockTelemetryDataChannel.SetExpectedCallToReceive("status report");

            TelemetryDiagnosticControls target = new TelemetryDiagnosticControls(stubTelemetryConnection, mockTelemetryDataChannel);


            target.CheckTransmission();


            mockTelemetryDataChannel.Verify();
            Assert.AreEqual(target.DiagnosticInfo, "status report", "diagnostic info");
        }