コード例 #1
0
        public void AllIncludedCommandsExist()
        {
            StandardCommandMap cm = new StandardCommandMap();

            cm.Load(@"Commands\commandmap.Simple.xml");

            Assert.True(cm.CommandExists("IncludedCommand"));
            Assert.True(cm.CommandExists("CommandWithMissingFriendly"));
            Assert.True(cm.CommandExists("CommandWithMissingInclude"));
            Assert.True(cm.CommandExists("CommandWithNonstandardFriendly"));
        }
コード例 #2
0
        public void UndefinedCommandsDoNotExist()
        {
            StandardCommandMap cm = new StandardCommandMap();

            cm.Load(@"Commands\commandmap.Simple.xml");

            Assert.False(cm.CommandExists("MiscellaneousCommand"));
        }
コード例 #3
0
        public void AllExcludedCommandsDoNotExist()
        {
            StandardCommandMap cm = new StandardCommandMap();

            cm.Load(@"Commands\commandmap.Simple.xml");

            Assert.False(cm.CommandExists("ExcludedCommand"));
        }