servicepoint/crates/servicepoint_binding_cs/ServicePoint.Tests/CommandTests.cs

16 lines
385 B
C#
Raw Permalink Normal View History

2024-10-20 12:29:45 +02:00
namespace ServicePoint.Tests;
public class CommandTests
{
private Connection _fakeConnection = Connection.Fake();
[Fact]
public void UseAfterSend()
2024-10-20 12:29:45 +02:00
{
var command = Command.Clear();
_fakeConnection.Send(command);
Assert.Throws<NullReferenceException>(() => _fakeConnection.Send(command));
_fakeConnection.Send(Command.Clear());
2024-10-20 12:29:45 +02:00
}
}