Beispiel #1
0
        public void Enumerable_ShouldContain_ManagementHoldOption()
        {
            // Arrange
            var subject = new ManagementArguments(_config, 66);

            // Act
            var result = subject.ToList();

            // Assert
            result.Should().Contain($"--management-hold");
        }
Beispiel #2
0
        public void Enumerable_ShouldContain_ManagementQueryPasswordsOption()
        {
            // Arrange
            var subject = new ManagementArguments(_config, 55);

            // Act
            var result = subject.ToList();

            // Assert
            result.Should().Contain("--management-query-passwords");
        }
Beispiel #3
0
        public void Enumerable_ShouldContain_ExpectedNumberOfOptions()
        {
            // Arrange
            var subject = new ManagementArguments(_config, 333);

            // Act
            var result = subject.ToList();

            // Assert
            result.Should().HaveCount(3);
        }
Beispiel #4
0
        public void Enumerable_ShouldContain_ManagementOption()
        {
            const int managementPort = 4444;

            // Arrange
            _config.ManagementHost = "127.0.0.5";
            var subject = new ManagementArguments(_config, managementPort);

            // Act
            var result = subject.ToList();

            // Assert
            result.Should().Contain($"--management {_config.ManagementHost} {managementPort} stdin");
        }