Beispiel #1
0
        public void GetShellCommandsTest()
        {
            Type[] commands = ShellCommand.GetShellCommands(Assembly.GetExecutingAssembly());

            Assert.IsNotNull(commands);
            Assert.AreEqual(3, commands.Length);
            CollectionAssert.Contains(commands, typeof(TestCommand));
            CollectionAssert.Contains(commands, typeof(AnotherCommand));
            CollectionAssert.Contains(commands, typeof(CustomParsingCommand));
        }