Skip to content

Commit

Permalink
Corrected asserts to check expected actual
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatthey committed May 24, 2024
1 parent 13e55bd commit 92aae64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/NetMQ.Tests/MessageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void Issue52_ReqToRouterBug()

var msg = router.ReceiveMultipartMessage();
Assert.Equal(3, msg.FrameCount);
Assert.Equal(msg[2].ConvertToString(), testmessage);
Assert.Equal(testmessage, msg[2].ConvertToString());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/NetMQ.Tests/RouterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void ReceiveReadyDot35Bug()
using (var server = new RouterSocket())
{
server.BindRandomPort("tcp://127.0.0.1");
server.ReceiveReady += (s, e) => Assert.True(false, "Should not receive");
server.ReceiveReady += (s, e) => Assert.Fail("Should not receive");

Assert.False(server.Poll(TimeSpan.FromMilliseconds(1500)));
}
Expand Down
6 changes: 3 additions & 3 deletions src/NetMQ.Tests/XPubSubTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void Manual()
sub.SendFrame(new byte[] { 1, (byte)'A' });
var subscription = pub.ReceiveFrameBytes();

Assert.Equal(subscription[1], (byte)'A');
Assert.Equal((byte)'A', subscription[1]);

pub.Subscribe("B");
pub.SendFrame("A");
Expand All @@ -356,7 +356,7 @@ public void WelcomeMessage()

var subscription = pub.ReceiveFrameBytes();

Assert.Equal(subscription[1], (byte)'W');
Assert.Equal((byte)'W', subscription[1]);

Assert.Equal("W", sub.ReceiveFrameString());
}
Expand All @@ -377,7 +377,7 @@ public void ClearWelcomeMessage()

var subscription = pub.ReceiveFrameBytes();

Assert.Equal(subscription[1], (byte)'W');
Assert.Equal((byte)'W', subscription[1]);

Assert.False(sub.TrySkipFrame());
}
Expand Down

0 comments on commit 92aae64

Please sign in to comment.