Пример #1
0
        public void ColormapOptionEquivalentToCreateStiches()
        {
            string[]     args = new string[] { "-writecolormap" };
            OptionParser op   = new OptionParser(args);

            ActionType t = op.ParseForAction();

            Assert.AreEqual(ActionType.WriteColormap, t);
        }
Пример #2
0
        public void FirstOptionWins()
        {
            string[]     args = new string[] { "-writecolormap", "-stitches" };
            OptionParser op   = new OptionParser(args);

            ActionType t = op.ParseForAction();

            Assert.AreEqual(ActionType.WriteColormap, t);
        }
Пример #3
0
        public void StitchesOptionEquivalentToCreateStiches()
        {
            string[]     args = new string[] { "-stitches" };
            OptionParser op   = new OptionParser(args);

            ActionType t = op.ParseForAction();

            Assert.AreEqual(ActionType.CreateStitches, t);
        }