コード例 #1
0
        public void ToCommandLine_Should_Write_Parameters_Correctly()
        {
            const string fileName = "c:\\tmp\\a.gif";

            string commandLine = new OutputFileParameter(fileName).ToCommandLine();
            Assert.AreEqual(commandLine, "\"-oc:\\tmp\\a.gif\"");
        }
コード例 #2
0
 public void Constructor_Should_Set_Properties()
 {
     const string fileName = "c:\\tmp\\a.gif";
     
     var parameter = new OutputFileParameter(fileName);
     
     Assert.AreEqual(parameter.FileName, fileName);
 }
コード例 #3
0
        public void ToCommandLine_Should_Write_Parameters_Correctly() {
            const string fileName = "c:\\tmp\\a.gif";
            var outputFile = new OutputFileParameter(fileName);
            OutputFormat format = OutputFormat.GIF;

            var parameter = new OutputFileWithFormatParameter(outputFile, format);

            string commandLine = parameter.ToCommandLine();
            Assert.AreEqual(commandLine, String.Format("{0} {1}", format.ToCommandLine(), outputFile.ToCommandLine()));
        }
コード例 #4
0
        public void Constructor_Should_Set_Properties() {
            const string fileName = "c:\\tmp\\a.gif";
            var outputFile = new OutputFileParameter(fileName);
            OutputFormat format = OutputFormat.GIF;

            var parameter = new OutputFileWithFormatParameter(outputFile, format);

            Assert.AreEqual(parameter.Format, format);
            Assert.AreEqual(parameter.OutputFile, outputFile);
        }