Browse files

fix for unit tests. all tests now pass on cdb 0.10 on ubuntu 9.10 and…

… on windows
  • Loading branch information...
1 parent 2ef84b6 commit 27ec9226c1b218beb1f219f3f32b652ce2d1fc6a kolosy committed Nov 16, 2009
Showing with 5 additions and 5 deletions.
  1. +4 −4 Tests/CouchTest.cs
  2. +1 −1 Tests/Divan.Test.csproj
View
8 Tests/CouchTest.cs
@@ -205,7 +205,7 @@ public void ShouldSaveDocumentWithoutId()
private class LittleCar
{
- public string Id, Rev;
+ public string _id, _rev;
public string Make, Model, docType;
}
@@ -214,17 +214,17 @@ public void ShouldSaveArbitraryDocument()
{
var littleCar = new LittleCar() { docType = "car", Make = "Yugo", Model = "Hell if i know" };
littleCar = db.SaveArbitraryDocument(littleCar);
- Assert.IsNotNull(littleCar.Id);
+ Assert.IsNotNull(littleCar._id);
}
[Test]
public void ShouldLoadArbitraryDocument()
{
var firstCar = new LittleCar() { docType = "car", Make = "Yugo", Model = "Hell if i know" };
firstCar = db.SaveArbitraryDocument(firstCar);
- var otherCar = db.GetArbitraryDocument<LittleCar>(firstCar.Id, () => new LittleCar());
+ var otherCar = db.GetArbitraryDocument<LittleCar>(firstCar._id, () => new LittleCar());
Assert.IsNotNull(otherCar);
- Assert.IsNotNull(otherCar.Id);
+ Assert.IsNotNull(otherCar._id);
}
[Test]
View
2 Tests/Divan.Test.csproj
@@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
+ <ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{09FB3192-8F25-4112-A8BB-93C83F6C3DDD}</ProjectGuid>
<OutputType>Library</OutputType>

0 comments on commit 27ec922

Please sign in to comment.