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\"");
        }
 public void Constructor_Should_Set_Properties()
 {
     const string fileName = "c:\\tmp\\a.gif";
     
     var parameter = new OutputFileParameter(fileName);
     
     Assert.AreEqual(parameter.FileName, fileName);
 }
        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()));
        }
        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);
        }