Exemplo n.º 1
0
        public void Then_password_is_mapped()
        {
            // Arrange
            string password = "******";

            string[] args = new string[] { "Matt_Cruise", password, "localhost:21", "/" };

            // Act
            PushrArgs pArgs = args.ReadArgs();

            // Assert
            pArgs.Password.Should().Be(password);
        }
Exemplo n.º 2
0
        public void Then_username_is_mapped()
        {
            // Arrange
            string username = "******";

            string[] args = new string[] { username, "pass", "localhost:21", "/" };

            // Act
            PushrArgs pArgs = args.ReadArgs();

            // Assert
            pArgs.User.Should().Be(username);
        }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            PushrArgs pArgs = args.ReadArgs();

            Console.WriteLine(pArgs);
        }