-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NCBC-253: Raise exception on FlushAll when called on CouchbaseNode
Change-Id: I910a9f903af65ccbb0a3656873ca1d6f4bb4c12d Reviewed-on: http://review.couchbase.org/26268 Reviewed-by: Saakshi Manocha <saakshi.manocha@globallogic.com> Tested-by: Saakshi Manocha <saakshi.manocha@globallogic.com>
- Loading branch information
1 parent
6f1a2da
commit a735ef6
Showing
4 changed files
with
47 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using NUnit.Framework; | ||
using Couchbase.Configuration; | ||
using System.Configuration; | ||
using Enyim.Caching; | ||
|
||
namespace Couchbase.Tests | ||
{ | ||
[TestFixture] | ||
public class CouchbaseClientMemcachedTests : CouchbaseClientTestsBase | ||
{ | ||
[ExpectedException(typeof(NotImplementedException))] | ||
[Test] | ||
public void When_FlushAll_Is_Called_On_CouchbaseNode_Not_Implemented_Exception_Is_Raised() | ||
{ | ||
_Client.FlushAll(); | ||
} | ||
|
||
[Test] | ||
public void When_FlushAll_Is_Called_On_BinaryNode_No_Exception_Is_Raised() | ||
{ | ||
var config = ConfigurationManager.GetSection("memcached-config") as CouchbaseClientSection; | ||
var client = new CouchbaseClient(config); | ||
client.FlushAll(); | ||
} | ||
} | ||
} |
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