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));
 }
 public void GetComponentOrDefaultByName_Requires_NonNullOrEmpty_Name()
 {
     ExportProvider provider = new Mock<TestExportProvider>().Object;
     AutoTester.StringArgumentNullOrEmpty(m => provider.GetComponentOrDefaultByName<string>(m));
     AutoTester.StringArgumentNullOrEmpty(m => provider.GetComponentOrDefaultByName<string>("Foo",m));
 }