public void ShouldInvokeResourcePredicate() { bool invoked = false; var resources = new ResourceBuilder().WithPredicate((resourceName, requestingProperty) => { invoked = true; return(ResourceBuilder.DefaultResourcePredicate(resourceName, requestingProperty)); }).Build <IResources>(); resources.SampleResource.Should().Be("This is a sample resource"); invoked.Should().BeTrue(); }