public void ExtensionMethods_Require_NonNull_Criteria()
 {
     ExportProvider provider = new Mock<TestExportProvider>().Object;
     AutoTester.ArgumentNull<Predicate<Export<string, ComponentMetadata>>>(m => provider.GetExportedObjectOrDefault(m));
     AutoTester.ArgumentNull<Predicate<Export<string, ComponentMetadata>>>(m => provider.GetExportedObjectOrDefault("Foo", m));
     AutoTester.ArgumentNull<Predicate<Export<string, ComponentMetadata>>>(m => provider.GetExport(m));
     AutoTester.ArgumentNull<Predicate<Export<string, ComponentMetadata>>>(m => provider.GetExport("Foo", m));
 }
 public void ExtensionMethods_Require_NonNullOrEmpty_ContractName()
 {
     ExportProvider provider = new Mock<TestExportProvider>().Object;
     AutoTester.StringArgumentNullOrEmpty(m => provider.GetComponentOrDefaultByName<string>(m, "Foo"));
     AutoTester.StringArgumentNullOrEmpty(m => provider.GetExportedObjectOrDefault<string, ComponentMetadata>(m, e => false));
     AutoTester.StringArgumentNullOrEmpty(m => provider.GetExport<string, ComponentMetadata>(m, e => false));
 }