Пример #1
0
        public void WithAdditionalArgument_CorrectInputs_GetsAddedToAdditionalArguments()
        {
            var cmd = new DummyCommand();

            cmd.WithAdditionalArgument("--argument123");

            CollectionAssert.AreEqual(
                cmd.AdditionalArguments, new[]
            {
                "--argument123",
            });
        }
Пример #2
0
        public void WithAdditionalArgument_NullOrEmptyArguments_ThrowsArgumentNullException(string input)
        {
            var cmd = new DummyCommand();

            Assert.Throws <ArgumentNullException>(() => cmd.WithAdditionalArgument(input));
        }