示例#1
0
 public void InitializeTests()
 {
     _mockSocketFactory = new Mock <ISocketFactory>();
     _connectParams     = new ConnectParams();
     _target            = new WorkerFactory
     {
         ConnectParams = _connectParams,
         SocketFactory = _mockSocketFactory.Object,
     };
 }
示例#2
0
        public void Contructor_LoadsDefaultValues()
        {
            // Arrange

            // Act
            var result = new ConnectParams();

            // Assert
            result.CommandPort.Should().Be(ConnectParams.DefaultCommandPort);
            result.ControlPort.Should().Be(ConnectParams.DefaultControlPort);
            result.VideoPort.Should().Be(ConnectParams.DefaultVideoPort);
            result.NavDataPort.Should().Be(ConnectParams.DefaultNavDataPort);
            result.NetworkAddress.Should().Be(ConnectParams.DefaultNetworkAddress);
        }