Permalink
Browse files

Upgrated dependent Nuget packages.

  • Loading branch information...
1 parent 69ed939 commit a914ffd0224c60fc0293aeb658070716a57fcb50 @object committed Apr 9, 2012
@@ -41,28 +41,23 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\ThirdParties\mongodb-mongo-csharp-driver-055744e\Driver\bin\Debug\MongoDB.Driver.dll</HintPath>
</Reference>
- <Reference Include="nunit.framework, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+ <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\NUnit.2.5.10.11092\lib\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="nunit.mocks, Version=2.5.10.11092, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\NUnit.2.5.10.11092\lib\nunit.mocks.dll</HintPath>
- </Reference>
- <Reference Include="pnunit.framework">
- <HintPath>..\packages\NUnit.2.5.10.11092\lib\pnunit.framework.dll</HintPath>
+ <HintPath>..\packages\NUnit.2.6.0.12054\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="Simple.Data">
<HintPath>..\packages\Simple.Data.Core.0.16.0.0\lib\net40\Simple.Data.dll</HintPath>
</Reference>
- <Reference Include="Simple.Data.OData">
- <HintPath>..\packages\Simple.Data.OData.0.2.1.0\lib\net40\Simple.Data.OData.dll</HintPath>
+ <Reference Include="Simple.Data.OData, Version=0.2.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\Simple.Data.OData.0.2.2.0\lib\net40\Simple.Data.OData.dll</HintPath>
</Reference>
- <Reference Include="Simple.NExtLib">
- <HintPath>..\packages\Simple.Data.OData.0.2.1.0\lib\net40\Simple.NExtLib.dll</HintPath>
+ <Reference Include="Simple.NExtLib, Version=0.1.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <HintPath>..\packages\Simple.Data.OData.0.2.2.0\lib\net40\Simple.NExtLib.dll</HintPath>
</Reference>
- <Reference Include="Simple.OData">
- <HintPath>..\packages\Simple.Data.OData.0.2.1.0\lib\net40\Simple.OData.dll</HintPath>
+ <Reference Include="Simple.OData, Version=0.2.2.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\packages\Simple.Data.OData.0.2.2.0\lib\net40\Simple.OData.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
@@ -154,17 +154,17 @@ public void FilterGreaterID()
}
[Test]
- public void FilterNameLength()
+ public void FilterNameContainsEqualsTrue()
{
- var result = ctx.Products.FindAll(ctx.Products.Name.Length() == 4).ToList();
+ var result = ctx.Products.FindAll(ctx.Products.Name.Contains("i") == true).ToList();
Assert.AreEqual(2, result.Count);
}
[Test]
- public void FilterNameContains()
+ public void FilterNameContainsEqualsFalse()
{
- var result = ctx.Products.FindAll(ctx.Products.Name.Contains("i") == true).ToList();
- Assert.AreEqual(2, result.Count);
+ var result = ctx.Products.FindAll(ctx.Products.Name.Contains("i") == false).ToList();
+ Assert.AreEqual(1, result.Count);
}
[Test]
@@ -175,13 +175,6 @@ public void FilterGreaterRating()
}
[Test]
- public void FilterGreaterIDAndNameLength()
- {
- var result = ctx.Products.FindAll(ctx.Products.ID > 0 && ctx.Products.Name.Length() == 4).ToList();
- Assert.AreEqual(2, result.Count);
- }
-
- [Test]
public void ProjectionVerifyExcluded()
{
var product = ctx.Products.All().Select(ctx.Products.ID).First();
@@ -291,6 +284,19 @@ public void VerifyClrTypes()
[TestFixture]
public class InMemoryServiceQueryTests : QueryTests<ProductInMemoryService>
{
+ [Test]
+ public void FilterNameLength()
+ {
+ var result = ctx.Products.FindAll(ctx.Products.Name.Length() == 4).ToList();
+ Assert.AreEqual(2, result.Count);
+ }
+
+ [Test]
+ public void FilterGreaterIDAndNameLength()
+ {
+ var result = ctx.Products.FindAll(ctx.Products.ID > 0 && ctx.Products.Name.Length() == 4).ToList();
+ Assert.AreEqual(2, result.Count);
+ }
}
[TestFixture]
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="NUnit" version="2.5.10.11092" />
+ <package id="NUnit" version="2.6.0.12054" />
<package id="Simple.Data.Core" version="0.16.0.0" />
- <package id="Simple.Data.OData" version="0.2.1.0" />
+ <package id="Simple.Data.OData" version="0.2.2.0" />
</packages>

0 comments on commit a914ffd

Please sign in to comment.