public void GetCustomizationFromNullParameterThrows()
 {
     // Fixture setup
     var sut = new FavorListsAttribute();
     // Exercise system and verify outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.GetCustomization(null));
     // Teardown
 }
 public void SutIsAttribute()
 {
     // Fixture setup
     // Exercise system
     var sut = new FavorListsAttribute();
     // Verify outcome
     Assert.IsAssignableFrom<CustomizeAttribute>(sut);
     // Teardown
 }
 public void GetCustomizationReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new FavorListsAttribute();
     var parameter = typeof(TypeWithOverloadedMembers).GetMethod("DoSomething", new[] { typeof(object) }).GetParameters().Single();
     // Exercise system
     var result = sut.GetCustomization(parameter);
     // Verify outcome
     var invoker = Assert.IsAssignableFrom<ConstructorCustomization>(result);
     Assert.Equal(parameter.ParameterType, invoker.TargetType);
     Assert.IsAssignableFrom<ListFavoringConstructorQuery>(invoker.Query);
     // Teardown
 }