public void Providers_scanning_ignored_for_system_assemblies(Type type) { Assembly asm = type.GetTypeInfo().Assembly; Assert.False(SharedRuntimeOptionsAttribute.GetSharedRuntimeOptions(asm).Providers); Assert.False(SharedRuntimeOptionsAttribute.GetSharedRuntimeOptions(asm).Templates); Assert.False(SharedRuntimeOptionsAttribute.GetSharedRuntimeOptions(asm).Adapters); }
public void Adapters_scanning_for_this_assembly_enabled() { Assembly shared = typeof(Adaptable).GetTypeInfo().Assembly; Assert.True(SharedRuntimeOptionsAttribute.GetSharedRuntimeOptions(shared).Adapters); Assembly self = GetType().GetTypeInfo().Assembly; Assert.True(SharedRuntimeOptionsAttribute.GetSharedRuntimeOptions(self).Adapters); }