public void GetCustomizationFromNullParameterThrows()
 {
     // Fixture setup
     var sut = new NoAutoPropertiesAttribute();
     // Exercise system and verify the outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.GetCustomization(null));
 }
 public void SutIsAttribute()
 {
     // Fixture setup
     // Exercise system
     var sut = new NoAutoPropertiesAttribute();
     // Verify outcome
     Assert.IsAssignableFrom<CustomizeAttribute>(sut);
 }
 public void GetCustomizationReturnsTheCorrectResult()
 {
     // Fixture setup
     var sut = new NoAutoPropertiesAttribute();
     var parameter = typeof(TypeWithOverloadedMembers)
         .GetMethod("DoSomething", new[] { typeof(object) })
         .GetParameters()
         .Single();
     // Exercise system
     var result = sut.GetCustomization(parameter);
     // Verify the outcome
     Assert.IsAssignableFrom<NoAutoPropertiesCustomization>(result);
 }