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

16 lines
385 B
C#

namespace ServicePoint.Tests;
public class CommandTests
{
private Connection _fakeConnection = Connection.Fake();
[Fact]
public void UseAfterSend()
{
var command = Command.Clear();
_fakeConnection.Send(command);
Assert.Throws<NullReferenceException>(() => _fakeConnection.Send(command));
_fakeConnection.Send(Command.Clear());
}
}