Ejemplo n.º 1
0
            public void SubCommandDefinition_Arguments()
            {
                var a = new SubCommandDefinition()
                {
                    arguments = new AzmiArgument[] { SharedAzmiArguments.identity }
                };

                Assert.IsType <AzmiArgument[]>(a.arguments);
            }
Ejemplo n.º 2
0
            public void SubCommandDefinition_Name()
            {
                var a = new SubCommandDefinition()
                {
                    name = "sc-name"
                };

                Assert.Equal("sc-name", a.name);
            }
Ejemplo n.º 3
0
            public void SubCommandDefinition_Description()
            {
                var a = new SubCommandDefinition()
                {
                    description = "sc-description"
                };

                Assert.Equal("sc-description", a.description);
            }
Ejemplo n.º 4
0
            public void SubCommandDefinition_Properties()
            {
                var a = new SubCommandDefinition()
                {
                    name        = "sc-name",
                    description = "sc-description",
                    arguments   = new AzmiArgument[] { SharedAzmiArguments.identity }
                };

                // TODO: Split these into three or fail only after all are executed
                Assert.Equal("sc-name", a.name);
                Assert.Equal("sc-description", a.description);
                Assert.IsType <AzmiArgument[]>(a.arguments);
            }