public void MetadataContext() { MetadataContext metadataContext = new MetadataContext(); ExpectArgumentNull("type", delegate { metadataContext.FindMethod(null, NQuery.Identifier.CreateNonVerbatim("Test")); }); ExpectArgumentNull("identifier", delegate { metadataContext.FindMethod(typeof(int), null); }); ExpectArgumentNull("type", delegate { metadataContext.FindProperty((Type)null, NQuery.Identifier.CreateNonVerbatim("Test")); }); ExpectArgumentNull("identifier", delegate { metadataContext.FindProperty(typeof(int), null); }); ExpectArgumentNull("properties", delegate { metadataContext.FindProperty((PropertyBinding[])null, NQuery.Identifier.CreateNonVerbatim("Test")); }); }
public void MetadataContext() { MetadataContext metadataContext = new MetadataContext(); ExpectArgumentNull("type", delegate { metadataContext.FindMethod(null, NQuery.Identifier.CreateNonVerbatim("Test")); }); ExpectArgumentNull("identifier", delegate { metadataContext.FindMethod(typeof(int), null); }); ExpectArgumentNull("type", delegate { metadataContext.FindProperty((Type) null, NQuery.Identifier.CreateNonVerbatim("Test")); }); ExpectArgumentNull("identifier", delegate { metadataContext.FindProperty(typeof(int), null); }); ExpectArgumentNull("properties", delegate { metadataContext.FindProperty((PropertyBinding[])null, NQuery.Identifier.CreateNonVerbatim("Test")); }); }