Exemplo n.º 1
0
        public void GetShouldReturnCommandLineArgumentsAttribute()
        {
            var attribute = CommandLineArgumentsAttribute.Get(typeof(XCopyCommandArgs));

            Assert.IsNotNull(attribute);
            Assert.AreEqual(XCopyCommandArgs.Title, attribute.Title);
            Assert.AreEqual(XCopyCommandArgs.Description, attribute.Description);
        }
Exemplo n.º 2
0
 public void GetThrowsArgumentNullWhenNull()
 {
     CommandLineArgumentsAttribute.Get(null);
 }
Exemplo n.º 3
0
        public void GetReturnsNullWhenNoAttribute()
        {
            var attribute = CommandLineArgumentsAttribute.Get(typeof(string));

            Assert.IsNull(attribute);
        }