Permalink
Browse files

Fixed minor issue with 'OK' code (wasn't checking for the possibility…

… of no 'OK') - the create nonce test was old, and wrong, fixed that, too. - completed merging wojo's adjustments.
  • Loading branch information...
1 parent 803359e commit 265306e4c1e2ab19a0453e7f369079534c6741f3 @atheken committed Jun 20, 2010
@@ -89,7 +89,7 @@ public void CreatesDigestFromNonce()
{
using (var connection = new DisposableConnection(ConnectionStringBuilder.Create(TestHelper.ConnectionString("querytimeout=30&strict=false", "ussrr", "ppaassss"))))
{
- Assert.Equal("08f11f775e2a8cf4248f0ae6126164f0", connection.Digest("1234abc"));
+ Assert.Equal("21069b52452d123b3f4885400c1c9581", connection.Digest("1234abc"));
}
}
@@ -21,7 +21,7 @@ public bool WasSuccessful
{
get
{
- return this["ok"].Equals(true) || this["ok"].Equals(1d);
+ return this._properties.ContainsKey("ok") && (this["ok"].Equals(true) || this["ok"].Equals(1d));
}
}

0 comments on commit 265306e

Please sign in to comment.