Пример #1
0
        public void CmdUpload_TrueWithMoreThan2Args()
        {
            CmdUpload _upload = new CmdUpload();

            string[] args   = { "string1", "string2", "string3" };
            var      result = _upload.Validate(args);

            Assert.True(result, "Upload should return true with more than 2 arguments");
        }
Пример #2
0
        public void CmdUpload_FalseWithNoArguments()
        {
            CmdUpload _upload = new CmdUpload();

            string[] args   = {};
            var      result = _upload.Validate(args);

            Assert.False(result, "Upload should return false with no arguments");
        }