public void PluggableAttribute_TypeNotAssignableFromAttribute_RaiseArgumentException() { // arrange PluggableAttribute att; Type type = typeof( object ); // act att = new PluggableAttribute( type ); // assert }
public void PluggalbeAttribute_TypeAssignableAsAttribute_Success() { // arrange PluggableAttribute att; Type type = typeof( SerializableAttribute ); // act att = new PluggableAttribute(type); // assert Assert.IsNotNull( att ); Assert.IsInstanceOf<PluggableAttribute>( att ); Assert.AreEqual( type, att.PluggableType ); }