コード例 #1
0
ファイル: ArgumentChecks.cs プロジェクト: resonancellc/nquery
        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
ファイル: ArgumentChecks.cs プロジェクト: chenzuo/nquery
		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")); });
		}