Example #1
0
        public void GetSourceFileNameOrTargetDirectoryParam_WhenNoThirdArg_ShouldReturnNull()
        {
            // GIVEN
            List <string> args = new List <string>();

            args.Add("TEST.BNK");
            args.Add("PackedFile");

            // WHEN
            string actualParam = BanksModule.GetSourceFileNameOrTargetDirectoryParam(args);

            // THEN
            Assert.IsNull(actualParam);
        }
Example #2
0
        public void GetBankFileNameParam_WhenArgs_ShouldReturnFirstOne()
        {
            // GIVEN
            List <string> args = new List <string>();

            args.Add("TEST.BNK");
            args.Add("1");

            // WHEN
            string actualParam = BanksModule.GetBankFileNameParam(args);

            // THEN
            Assert.AreEqual("TEST.BNK", actualParam);
        }
Example #3
0
        public void GetSourceFileNameOrTargetDirectoryParam_WhenArgs_ShouldReturnThirdOne()
        {
            // GIVEN
            List <string> args = new List <string>();

            args.Add("TEST.BNK");
            args.Add("PackedFile");
            args.Add("C:\\file1");

            // WHEN
            string actualParam = BanksModule.GetSourceFileNameOrTargetDirectoryParam(args);

            // THEN
            Assert.AreEqual("C:\\file1", actualParam);
        }
Example #4
0
        public void GetBatchInputFileParam_WhenArgs_ShouldReturnSecondOne()
        {
            // GIVEN
            List <string> args = new List <string>();

            args.Add("TEST.BNK");
            args.Add("BatchInput.json");
            args.Add("1");

            // WHEN
            string actualParam = BanksModule.GetBatchInputFileParam(args);

            // THEN
            Assert.AreEqual("BatchInput.json", actualParam);
        }