Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Fixed some compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Sep 8, 2016
1 parent 7c897f9 commit 1572d82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 25 deletions.
23 changes: 4 additions & 19 deletions DtronixMessageQueue.Rpc.Tests/RpcClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public void Client_calls_proxy_method() {
var service = Client.Session.GetProxy<ICalculatorService>();
var result = service.Add(100, 200);

if (result != 300) {
LastException = new Exception("Service returned wrong result.");
}

TestStatus.Set();
};

Expand Down Expand Up @@ -107,24 +111,5 @@ public void Client_calls_proxy_method_simultaneous() {

Output.WriteLine($"{stopwatch.ElapsedMilliseconds}");
}



[Fact]
public void serializes_data() {
var writer = new MqMessageWriter(Config);
var bwriter = new BsonWriter(writer) {CloseOutput = false};

var s = new Test {
Length = 51235115,
TestStr = "ASFSFASFsfaasf aslgheqw8tyh 23 hy wasgh asdgio a"
};

JsonSerializer serializer = new JsonSerializer();
serializer.Serialize(bwriter, s);


var message2 = writer.ToMessage();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void RpcSingleProcessTest(int runs, int loops, MqSocketConfig config, Rp
break;

case RpcTestType.Return:
var result = service.TestIncrement();
service.TestIncrement();
break;

case RpcTestType.Exception:
Expand Down
6 changes: 1 addition & 5 deletions DtronixMessageQueue.Tests/DtronixMessageQueue.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
</ItemGroup>
</When>
<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
</ItemGroup>
</Otherwise>
<Otherwise />
</Choose>
<ItemGroup>
<Compile Include="MqFrameBuilderTests.cs" />
Expand Down
1 change: 1 addition & 0 deletions DtronixMessageQueue.Tests/PerformanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace DtronixMessageQueue.Tests {

public class PerformanceTests {

private ITestOutputHelper output;

public PerformanceTests(ITestOutputHelper output) {
Expand Down

0 comments on commit 1572d82

Please sign in to comment.