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()); }
public void QuantifiersTest() { QueryMethods.Any(); QueryMethods.AnyWithPredicate(); QueryMethods.Contains(); QueryMethods.AllNot(); QueryMethods.NotAny(); }
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()); }