Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit c968cb1

Browse files
committed
Add MessageSender verifications
1 parent 02c03d6 commit c968cb1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
namespace Microsoft.Azure.ServiceBus.UnitTests
2+
{
3+
using Core;
4+
using Xunit;
5+
6+
public class MessageSenderTests
7+
{
8+
private MessageSender messageSender;
9+
10+
public MessageSenderTests()
11+
{
12+
var builder = new ServiceBusConnectionStringBuilder("blah.com", "path", "key-name", "key-value");
13+
var connection = new ServiceBusConnection(builder);
14+
messageSender = new MessageSender(connection, "path", "via");
15+
}
16+
17+
[Fact]
18+
[DisplayTestMethodName]
19+
public void Path_should_not_change()
20+
{
21+
Assert.Equal("path", messageSender.Path);
22+
}
23+
24+
[Fact]
25+
[DisplayTestMethodName]
26+
public void TransferDestinationPath_should_not_change()
27+
{
28+
Assert.Equal("via", messageSender.TransferDestinationPath);
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)