コード例 #1
0
ファイル: CommandTest.cs プロジェクト: jacksonh/nuget
        public void GetCommandAttributes_UsesCommandAttributesIfAvailable()
        {
            // Arrange
            var command = new MockCommandWithCommandAttributes();

            // Act and Assert
            Assert.AreEqual(command.CommandAttribute.CommandName, "NameFromAttribute");
            Assert.AreEqual(command.CommandAttribute.Description, "DescFromAttribute");
        }
コード例 #2
0
        public void GetCommandAttributes_UsesCommandAttributesIfAvailable()
        {
            // Arrange
            var command = new MockCommandWithCommandAttributes();

            // Act and Assert
            Assert.Equal(command.CommandAttribute.CommandName, "NameFromAttribute");
            Assert.Equal(command.CommandAttribute.Description, "DescFromAttribute");
        }