예제 #1
0
        public void QuantifiersTest()
        {
            QueryMethods.Any(new AdventureWorks());
            QueryMethods.AnyWithPredicate(new AdventureWorks());
            QueryMethods.AllWithPredicate(new AdventureWorks());
            QueryMethods.ContainsPrimitive(new AdventureWorks());
#if NETFX
            try
            {
                QueryMethods.ContainsEntity(new AdventureWorks());
                Assert.Fail();
            }
            catch (NotSupportedException exception)
            {
                Trace.WriteLine(exception);
            }
#else
            try
            {
                QueryMethods.ContainsEntity(new AdventureWorks());
                Assert.Fail();
            }
            catch (ArgumentException exception)
            {
                Trace.WriteLine(exception);
            }
#endif
            QueryMethods.AllNot(new AdventureWorks());
            QueryMethods.NotAny(new AdventureWorks());
        }
예제 #2
0
 public void QuantifiersTest()
 {
     QueryMethods.ContainsEntity(new AdventureWorks());
     QueryMethods.ContainsPrimitive(new AdventureWorks());
     QueryMethods.Any(new AdventureWorks());
     QueryMethods.AnyWithPredicate(new AdventureWorks());
     QueryMethods.AllWithPredicate(new AdventureWorks());
     QueryMethods.AllNot(new AdventureWorks());
     QueryMethods.NotAny(new AdventureWorks());
 }