Beispiel #1
0
        public void OnlyInputFilename()
        {
            string[]     args = new string[] { "myFile" };
            OptionParser op   = new OptionParser(args);

            string f = op.ParseForInputfile();

            Assert.AreEqual("myFile", f);
        }
Beispiel #2
0
        public void ColormapNameNotMistakenForInputFilename()
        {
            string[]     args = new string[] { "--colormap", "map.csv" };
            OptionParser op   = new OptionParser(args);

            string f = op.ParseForInputfile();

            Assert.AreEqual(string.Empty, f);
        }
Beispiel #3
0
        public void InputFilenameAndOption()
        {
            string[]     args = new string[] { "-writecolormap", "myFile" };
            OptionParser op   = new OptionParser(args);

            string f = op.ParseForInputfile();

            Assert.AreEqual("myFile", f);
        }
Beispiel #4
0
        public void ColormapAndInputFilenameSpecified()
        {
            string[]     args = new string[] { "--colormap", "map.csv", "in.svg" };
            OptionParser op   = new OptionParser(args);

            string f = op.ParseForInputfile();

            Assert.AreEqual("in.svg", f);
        }