public void AggregateTest() { QueryMethods.CommutativeAssociative(); QueryMethods.AggregateCorrectness(); QueryMethods.VisualizeAggregate(); QueryMethods.MergeForAggregate(); }
public void PartitioningTest() { QueryMethods.Skip(); // TODO. QueryMethods.OrderByAndSkip(); QueryMethods.Take(); QueryMethods.OrderByAndSkipAndTake(); }
public void OrderingTest() { QueryMethods.OrderBy(); QueryMethods.OrderByDescending(); QueryMethods.OrderByAndThenBy(); try { QueryMethods.OrderByAnonymousType(); Assert.Fail(); } catch (InvalidOperationException exception) { Trace.WriteLine(exception); } QueryMethods.OrderByAndOrderBy(); try { QueryMethods.Reverse(); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } }
public void NavigationTest() { QueryMethods.ParentAndAncestors(); QueryMethods.ChildElements(); QueryMethods.ChildrenAndDescendants(); QueryMethods.ResultObjects(); }
public void MergeTest() { QueryMethods.Except(); QueryMethods.MergeForSelect(); QueryMethods.MergeForTakeWhile(); QueryMethods.MergeForOrderBy(); }
public void OrderingTest() { QueryMethods.AsOrdered(); QueryMethods.AsUnordered(); QueryMethods.OrderBy(); QueryMethods.Correctness(); }
public void ConversionTest() { //#if NETFX // QueryMethods.CastPrimitive(new AdventureWorks()); //#else // try // { // QueryMethods.CastPrimitive(new AdventureWorks()); // Assert.Fail(); // } // catch (InvalidOperationException exception) // { // Trace.WriteLine(exception); // } //#endif //#if NETFX // try // { // QueryMethods.CastEntity(new AdventureWorks()); // Assert.Fail(); // } // catch (NotSupportedException exception) // { // Trace.WriteLine(exception); // } //#else // QueryMethods.CastEntity(new AdventureWorks()); //#endif QueryMethods.AsEnumerableAsQueryable(new AdventureWorks()); QueryMethods.SelectLocalEntity(new AdventureWorks()); }
public void GenerationTest() { QueryMethods.DefaultIfEmptyEntity(new AdventureWorks()); QueryMethods.DefaultIfEmptyPrimitive(new AdventureWorks()); QueryMethods.DefaultIfEmptyWithDefaultEntity(new AdventureWorks()); QueryMethods.DefaultIfEmptyWithDefaultPrimitive(new AdventureWorks()); }
public void ConversionTest() { #if NETFX QueryMethods.CastPrimitive(new AdventureWorks()); #else try { QueryMethods.CastPrimitive(new AdventureWorks()); Assert.Fail(); } catch (InvalidOperationException exception) { Trace.WriteLine(exception); } #endif #if NETFX try { QueryMethods.CastEntity(new AdventureWorks()); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } #else QueryMethods.CastEntity(new AdventureWorks()); #endif QueryMethods.AsEnumerableAsQueryable(new AdventureWorks()); QueryMethods.SelectLocalEntity(new AdventureWorks()); }
public void MappingTest() { QueryMethods.Select(new AdventureWorks()); QueryMethods.SelectWithStringConcat(new AdventureWorks()); QueryMethods.SelectEntity(new AdventureWorks()); QueryMethods.SelectAnonymousType(new AdventureWorks()); }
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 OrderingTest() { QueryMethods.OrderBy(new AdventureWorks()); QueryMethods.OrderByDescending(new AdventureWorks()); QueryMethods.OrderByAndThenBy(new AdventureWorks()); try { QueryMethods.OrderByMultipleKeys(new AdventureWorks()); Assert.Fail(); } catch (InvalidOperationException exception) { Trace.WriteLine(exception); } QueryMethods.OrderByAndOrderBy(new AdventureWorks()); try { QueryMethods.Reverse(new AdventureWorks()); Assert.Fail(); } catch (NotImplementedException exception) { Trace.WriteLine(exception); } }
public void PartitioningTest() { QueryMethods.Skip(new AdventureWorks()); QueryMethods.OrderByAndSkip(new AdventureWorks()); QueryMethods.Take(new AdventureWorks()); QueryMethods.SkipAndTake(new AdventureWorks()); try { QueryMethods.TakeWhile(new AdventureWorks()); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } try { QueryMethods.SkipWhile(new AdventureWorks()); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } }
public void ElementTest() { QueryMethods.First(); QueryMethods.FirstOrDefault(); try { QueryMethods.Last(); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } try { QueryMethods.LastOrDefault(); Assert.Fail(); } catch (NotSupportedException exception) { Trace.WriteLine(exception); } QueryMethods.Single(); QueryMethods.SingleOrDefault(); }
public void QuantifiersTest() { QueryMethods.Any(); QueryMethods.AnyWithPredicate(); QueryMethods.Contains(); QueryMethods.AllNot(); QueryMethods.NotAny(); }
public void GroupingTest() { QueryMethods.GroupBy(); // TODO. N+!. QueryMethods.GroupByWithResultSelector(); QueryMethods.GroupByAndSelect(); QueryMethods.GroupByAndSelectMany(); QueryMethods.GroupByMultipleKeys(); }
public void GroupingTest() { QueryMethods.GroupBy(new AdventureWorks()); QueryMethods.GroupByWithResultSelector(new AdventureWorks()); QueryMethods.GroupByAndSelect(new AdventureWorks()); QueryMethods.GroupByAndSelectMany(new AdventureWorks()); QueryMethods.GroupByMultipleKeys(new AdventureWorks()); }
public void AggregateTest() { QueryMethods.Count(new AdventureWorks()); QueryMethods.LongCount(new AdventureWorks()); QueryMethods.Max(new AdventureWorks()); QueryMethods.Min(new AdventureWorks()); QueryMethods.Average(new AdventureWorks()); QueryMethods.Sum(new AdventureWorks()); }
private static void ImportDiscoveries() { XDocument xmlData = XDocument.Load("../../../Resources/discoveries.xml"); xmlData.Root.Elements().ToList().ForEach(discovery => { QueryMethods.AddDiscovery(discovery); }); }
private static void ImportStars() { XDocument xmlData = XDocument.Load("../../../Resources/stars.xml"); xmlData.Root.Elements().ToList().ForEach(star => { QueryMethods.AddStar(star); }); }
public void QueryTest() { QueryMethods.OptInOutParallel(); QueryMethods.QueryExpression(); QueryMethods.ForEachForAll(); QueryMethods.ForEachForAllTimeSpans(); QueryMethods.VisualizeForEachForAll(); QueryMethods.WhereSelect(); }
public void ApplyTest() { QueryMethods.CrossApplyWithGroupByAndTake(); QueryMethods.CrossApplyWithGroupJoinAndTake(); QueryMethods.CrossApplyWithAssociationAndTake(); QueryMethods.OuterApplyWithGroupByAndFirstOrDefault(); // TODO.N+1. QueryMethods.OuterApplyWithGroupJoinAndFirstOrDefault(); // TODO.N+1. QueryMethods.OuterApplyWithAssociationAndFirstOrDefault(); // TODO.N+1. }
public void AggregateTest() { QueryMethods.Count(); QueryMethods.LongCount(); QueryMethods.Max(); QueryMethods.Min(); QueryMethods.Average(); QueryMethods.Sum(); }
public void QueryTest() { QueryMethods.Generation(); QueryMethods.AsParallelAsSequential(); QueryMethods.QueryExpression(); QueryMethods.ForEachForAll(); QueryMethods.RenderForEachForAllSpans(); QueryMethods.VisualizeForEachForAll(); QueryMethods.VisualizeWhereSelect(); }
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()); }
public void SetTest() { QueryMethods.Distinct(); QueryMethods.DistinctWithGroupBy(); QueryMethods.DistinctMultipleKeys(); QueryMethods.DistinctMultipleKeysWithGroupBy(); QueryMethods.DistinctWithGroupByAndSelectAndFirstOrDefault(); QueryMethods.Intersect(); QueryMethods.Except(); }
public void FilteringTest() { QueryMethods.Where(); QueryMethods.WhereWithOr(); QueryMethods.WhereWithAnd(); QueryMethods.WhereAndWhere(); QueryMethods.WhereWithIs(); QueryMethods.OfTypeWithEntiy(); QueryMethods.OfTypeWithPromitive(); // TODO. }
public void OrderingTest() { QueryMethods.SelectWithIndex(); QueryMethods.AsOrdered(); QueryMethods.AsUnordered(); QueryMethods.OrderBy(); QueryMethods.Correctness(); QueryMethods.JoinAsUnordered(); QueryMethods.MergeOptionForOrder(); }
public void FilteringTest() { QueryMethods.Where(new AdventureWorks()); QueryMethods.WhereWithOr(new AdventureWorks()); QueryMethods.WhereWithAnd(new AdventureWorks()); QueryMethods.WhereAndWhere(new AdventureWorks()); QueryMethods.WhereWithIs(new AdventureWorks()); QueryMethods.OfTypeEntity(new AdventureWorks()); QueryMethods.OfTypePrimitive(new AdventureWorks()); }
public void ApplyTest() { QueryMethods.CrossApplyWithGroupByAndTake(new AdventureWorks()); QueryMethods.CrossApplyWithGroupJoinAndTake(new AdventureWorks()); #if NETFX QueryMethods.CrossApplyWithRelationshipAndTake(new AdventureWorks()); #endif QueryMethods.OuterApplyWithGroupByAndFirstOrDefault(new AdventureWorks()); QueryMethods.OuterApplyWithGroupJoinAndFirstOrDefault(new AdventureWorks()); QueryMethods.OuterApplyWithRelationshipAndFirstOrDefault(new AdventureWorks()); }