Skip to content

Commit

Permalink
TelemetrySystem/C#: minor code upgrade to C# 3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Minudel committed Sep 12, 2013
1 parent 0347bd3 commit a3a6b34
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -8,14 +8,14 @@ public class TelemetryDiagnosticControlsTest
[Test]
public void CheckTransmission_should_send_a_diagnostic_message_and_receive_a_status_message_response()
{
StubTelemetryConnection stubTelemetryConnection = new StubTelemetryConnection();
var stubTelemetryConnection = new StubTelemetryConnection();
stubTelemetryConnection.StubGetOnlineStatus(true);

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

TelemetryDiagnosticControls target = new TelemetryDiagnosticControls(stubTelemetryConnection, mockTelemetryDataChannel);
var target = new TelemetryDiagnosticControls(stubTelemetryConnection, mockTelemetryDataChannel);


target.CheckTransmission();
Expand Down

0 comments on commit a3a6b34

Please sign in to comment.