예제 #1
0
        public void Enumerable_ShouldContain_LPortOption()
        {
            // Arrange
            var subject = new LocalHostArguments("1.2.3.4");

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

            // Assert
            result.Should().Contain($"--lport 0");
        }
예제 #2
0
        public void Enumerable_ShouldContain_ExpectedNumberOfOptions()
        {
            // Arrange
            var subject = new LocalHostArguments("44.55.66.77");

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

            // Assert
            result.Should().HaveCount(2);
        }
예제 #3
0
        public void Enumerable_ShouldContain_LocalOption()
        {
            const string localIp = "192.168.0.15";

            // Arrange
            var subject = new LocalHostArguments(localIp);

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

            // Assert
            result.Should().Contain($"--local {localIp}");
        }