summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adamansky@gmail.com>2013-06-24 14:38:58 +0700
committeradam <adamansky@gmail.com>2013-06-24 14:38:58 +0700
commit4415f6e2bddc12166d1c053f799b7aefc5ccd491 (patch)
treebe78e3a5a653ba88985f776f9df2fbc3029d87fe
parentfa6e985e708dd0f0c20f6ce7a0bc0ef5fc86626d (diff)
downloadejdb-4415f6e2bddc12166d1c053f799b7aefc5ccd491.tar.gz
ejdb-4415f6e2bddc12166d1c053f799b7aefc5ccd491.tar.bz2
ejdb-4415f6e2bddc12166d1c053f799b7aefc5ccd491.zip
nejdb minors
-rw-r--r--nejdb/Ejdb.BSON/BSONDocument.cs2
-rw-r--r--nejdb/Ejdb.Tests/TestBSON.cs4
-rw-r--r--nejdb/Ejdb.Tests/TestEJDB.cs2
-rw-r--r--nejdb/Ejdb.Utils/TypeExtension.cs2
-rw-r--r--nejdb/nejdb.csproj12
-rw-r--r--nejdb/nejdb.userprefs25
6 files changed, 23 insertions, 24 deletions
diff --git a/nejdb/Ejdb.BSON/BSONDocument.cs b/nejdb/Ejdb.BSON/BSONDocument.cs
index 0778961..14ed3ae 100644
--- a/nejdb/Ejdb.BSON/BSONDocument.cs
+++ b/nejdb/Ejdb.BSON/BSONDocument.cs
@@ -268,7 +268,7 @@ namespace Ejdb.BSON {
/// Gets the <see cref="Ejdb.BSON.BSONDocument"/> with the specified key.
/// </summary>
/// <remarks>
- /// Hierarchical field paths are supported.
+ /// Getter for hierarchical field paths are supported.
/// </remarks>
/// <param name="key">Key.</param>
/// <returns>Key object </c> or <c>null</c> if the key is not exists or value type is either
diff --git a/nejdb/Ejdb.Tests/TestBSON.cs b/nejdb/Ejdb.Tests/TestBSON.cs
index 5d07983..6c56b4f 100644
--- a/nejdb/Ejdb.Tests/TestBSON.cs
+++ b/nejdb/Ejdb.Tests/TestBSON.cs
@@ -57,7 +57,7 @@ namespace Ejdb.Tests {
doc2.SetNumber("0", 2);
Assert.AreEqual(1, doc2.KeysCount);
object ival = doc2["0"];
- Assert.IsInstanceOfType(typeof(int), ival);
+ Assert.IsInstanceOf(typeof(int), ival);
Assert.AreEqual(2, ival);
doc2.SetNumber("1", Int32.MaxValue);
//13-00-00-00
@@ -215,7 +215,7 @@ namespace Ejdb.Tests {
}
if (c == 2) {
Assert.AreEqual(BSONType.OID, bv.BSONType);
- Assert.IsInstanceOfType(typeof(BSONOid), bv.Value);
+ Assert.IsInstanceOf(typeof(BSONOid), bv.Value);
var oid = bv.Value as BSONOid;
Assert.AreEqual("51b9f3af98195c4600000000", oid.ToString());
}
diff --git a/nejdb/Ejdb.Tests/TestEJDB.cs b/nejdb/Ejdb.Tests/TestEJDB.cs
index bfaae53..c921fa3 100644
--- a/nejdb/Ejdb.Tests/TestEJDB.cs
+++ b/nejdb/Ejdb.Tests/TestEJDB.cs
@@ -54,7 +54,7 @@ namespace Ejdb.Tests {
bool rv = jb.Save("mycoll", doc);
Assert.IsTrue(rv);
Assert.IsNotNull(doc["_id"]);
- Assert.IsInstanceOfType(typeof(BSONOid), doc["_id"]);
+ Assert.IsInstanceOf(typeof(BSONOid), doc["_id"]);
rv = jb.Save("mycoll", doc);
Assert.IsTrue(rv);
diff --git a/nejdb/Ejdb.Utils/TypeExtension.cs b/nejdb/Ejdb.Utils/TypeExtension.cs
index eb422ea..505bec5 100644
--- a/nejdb/Ejdb.Utils/TypeExtension.cs
+++ b/nejdb/Ejdb.Utils/TypeExtension.cs
@@ -19,7 +19,7 @@ using System.Runtime.CompilerServices;
namespace Ejdb.Utils {
/// <summary>
- /// Check if specified type if anonymous.
+ /// Check if specified type is anonymous.
/// </summary>
public static class TypeExtension {
public static bool IsAnonymousType(this Type type) {
diff --git a/nejdb/nejdb.csproj b/nejdb/nejdb.csproj
index 9158371..07bb306 100644
--- a/nejdb/nejdb.csproj
+++ b/nejdb/nejdb.csproj
@@ -10,8 +10,8 @@
<RootNamespace>Ejdb</RootNamespace>
<AssemblyName>nejdb</AssemblyName>
<Description>EJDB .Net binding (http://ejdb.org)</Description>
- <ReleaseVersion>1.0.0</ReleaseVersion>
<CodePage>65001</CodePage>
+ <ReleaseVersion>1.0.0</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugUnix|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -30,6 +30,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
+ <DefineConstants>DEBUG;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWindows|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -48,16 +49,15 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
- <DefineConstants>EJDBDLL</DefineConstants>
+ <DefineConstants>DEBUG;EJDBDLL;</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
- <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
- <Private>False</Private>
- <SpecificVersion>False</SpecificVersion>
- </Reference>
<Reference Include="System.Core" />
<Reference Include="Mono.Posix" />
+ <Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
+ <Private>False</Private>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs" />
diff --git a/nejdb/nejdb.userprefs b/nejdb/nejdb.userprefs
index d7e4d87..8634846 100644
--- a/nejdb/nejdb.userprefs
+++ b/nejdb/nejdb.userprefs
@@ -1,27 +1,26 @@
<Properties>
- <MonoDevelop.Ide.Workspace ActiveConfiguration="DebugUnix" />
- <MonoDevelop.Ide.Workbench ActiveDocument="sample/Program.cs">
+ <MonoDevelop.Ide.Workspace ActiveConfiguration="ReleaseUnix" />
+ <MonoDevelop.Ide.Workbench ActiveDocument="Ejdb.Tests/TestEJDB.cs">
<Files>
- <File FileName="sample/Program.cs" Line="59" Column="70" />
- <File FileName="Ejdb.BSON/BSONIterator.cs" Line="155" Column="24" />
- <File FileName="Ejdb.BSON/BSONDocument.cs" Line="148" Column="27" />
+ <File FileName="Ejdb.Tests/TestEJDB.cs" Line="153" Column="36" />
+ <File FileName="Ejdb.Tests/TestBSON.cs" Line="279" Column="31" />
+ <File FileName="Ejdb.DB/EJDB.cs" Line="5" Column="10" />
+ <File FileName="Ejdb.BSON/BSONDocument.cs" Line="279" Column="68" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State expanded="True">
- <Node name="nejdb" expanded="True">
+ <Node name="nejdb" expanded="True" selected="True">
+ <Node name="References" expanded="True" />
<Node name="Ejdb.BSON" expanded="True" />
+ <Node name="Ejdb.DB" expanded="True" />
+ <Node name="Ejdb.Tests" expanded="True" />
</Node>
- <Node name="sample" expanded="True">
- <Node name="Properties" expanded="True" />
- <Node name="Program.cs" selected="True" />
- </Node>
+ <Node name="sample" expanded="True" />
</State>
</Pad>
<Pad Id="ClassPad">
- <State expanded="True" selected="True">
- <Node name="nejdb" expanded="True" />
- </State>
+ <State expanded="True" selected="True" />
</Pad>
<Pad Id="MonoDevelop.Debugger.WatchPad">
<State>