示例#1
0
        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")); });
        }
示例#2
0
		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")); });
		}