public void TestOptionAttribute() { var att = TestCommandStatic.GetOptionAttribute(); Assert.NotNull(att); Assert.Contains(att.Aliases, s => s == TestCommandStatic.OP_1_ALIAS); Assert.Equal(TestCommandStatic.OP_1_ARG_NAME, att.ArgumentName); Assert.Equal(TestCommandStatic.OP_1_DESC, att.Description); }
public void TestArgumentAttribute() { var att = TestCommandStatic.GetArgumentAttribute(); Assert.NotNull(att); Assert.Equal(0, att.Arity[0]); Assert.Equal(1, att.Arity[1]); Assert.Equal(TestCommandStatic.ARG_1_DESC, att.Description); }