Exemplo n.º 1
0
        public void should_return_false_when_first_parameter_is_not_width_list_show_parameter()
        {
            var cmdParam1 = new CmdParam(new[] { "/f" });
            var cmdParam2 = new CmdParam(new string[] { });

            Assert.AreEqual(false, cmdParam1.IsWidthListShowParam());
            Assert.AreEqual(false, cmdParam2.IsWidthListShowParam());
        }
Exemplo n.º 2
0
        public void  should_return_true_when_first_parameter_is_width_list_show_parameter()
        {
            var cmdParam1 = new CmdParam(new[] { "/w" });
            var cmdParam2 = new CmdParam(new [] { "/W" });
            var cmdParam3 = new CmdParam(new [] { "/w", "/f" });

            Assert.AreEqual(true, cmdParam1.IsWidthListShowParam());
            Assert.AreEqual(true, cmdParam2.IsWidthListShowParam());
            Assert.AreEqual(true, cmdParam3.IsWidthListShowParam());
        }