Example #1
0
        public void GetCommandAttributes_UsesCommandNameAndDefaultDescriptionIfNoCommandAttributesPresent()
        {
            // Arrange
            var command = new MockWithoutCommandAttributesCommand();

            // Act and Assert
            Assert.AreEqual(command.CommandAttribute.CommandName, "MockWithoutCommandAttributes");
            Assert.AreEqual(command.CommandAttribute.Description, "No description was provided for this command.");
        }
        public void GetCommandAttributes_UsesCommandNameAndDefaultDescriptionIfNoCommandAttributesPresent()
        {
            // Arrange
            var command = new MockWithoutCommandAttributesCommand();

            // Act and Assert
            Assert.Equal(command.CommandAttribute.CommandName, "MockWithoutCommandAttributes");
            Assert.Equal(command.CommandAttribute.Description, "No description was provided for this command.");
        }