20 lines
565 B
C#
20 lines
565 B
C#
using MxGateway.Contracts;
|
|
using MxGateway.Worker.Ipc;
|
|
|
|
namespace MxGateway.Worker.Tests.Contracts;
|
|
|
|
public sealed class WorkerContractInfoTests
|
|
{
|
|
[Fact]
|
|
public void SupportedProtocolVersion_UsesSharedGatewayContractVersion()
|
|
{
|
|
Assert.Equal(GatewayContractInfo.WorkerProtocolVersion, WorkerContractInfo.SupportedProtocolVersion);
|
|
}
|
|
|
|
[Fact]
|
|
public void WorkerEnvelopeDescriptorName_UsesGeneratedWorkerContract()
|
|
{
|
|
Assert.Equal("mxaccess_worker.v1.WorkerEnvelope", WorkerContractInfo.WorkerEnvelopeDescriptorName);
|
|
}
|
|
}
|