-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved entity framework test to in memory database.
- Loading branch information
David Lebee
committed
Oct 23, 2018
1 parent
3ec2b6b
commit 2cd1d27
Showing
6 changed files
with
139 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Linq; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace PoweredSoft.DynamicLinq.Test | ||
{ | ||
[TestClass] | ||
public class CountTests | ||
{ | ||
[TestMethod] | ||
public void Count() | ||
{ | ||
var normalSyntax = TestData.Sales.Count(); | ||
var nonGenericQueryable = (IQueryable)TestData.Sales.AsQueryable(); | ||
var dynamicSyntax = nonGenericQueryable.Count(); | ||
Assert.AreEqual(normalSyntax, dynamicSyntax); | ||
} | ||
|
||
[TestMethod] | ||
public void LongCount() | ||
{ | ||
var normalSyntax = TestData.Sales.LongCount(); | ||
var nonGenericQueryable = (IQueryable)TestData.Sales.AsQueryable(); | ||
var dynamicSyntax = nonGenericQueryable.LongCount(); | ||
Assert.AreEqual(normalSyntax, dynamicSyntax); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters