public void Can_NOT_be_plugged_in_if_plugged_type_cannot_be_cast_to_the_plugin_type() { var instance = new ConfiguredInstance(typeof(ColorRule)); var family = new PluginFamily(typeof(IWidget)); instance.As <IDiagnosticInstance>().CanBePartOfPluginFamily(family).ShouldBeFalse(); }