public void When_Default_Item_has_Changed_HasServerChanged_Returns_True() { var couchbaseConfiguration = new ClientConfiguration(); couchbaseConfiguration.Servers[0]= new Uri("http://localhost2:8091"); Assert.IsTrue(couchbaseConfiguration.HasServersChanged()); }
public void When_Servers_Has_Not_Changed_HasServerChanged_Returns_False() { var couchbaseConfiguration = new ClientConfiguration(); Assert.IsFalse(couchbaseConfiguration.HasServersChanged()); }
public void When_Servers_Is_Empty_ArgumentNullException_Is_Thrown() { var couchbaseConfiguration = new ClientConfiguration(); couchbaseConfiguration.Servers.Clear(); Assert.IsTrue(couchbaseConfiguration.HasServersChanged()); }
public void When_Servers_Changes_HasServerChanged_Returns_True() { var couchbaseConfiguration = new ClientConfiguration(); couchbaseConfiguration.Servers.Clear(); couchbaseConfiguration.Servers.Add(new Uri("http://192.168.37.2")); couchbaseConfiguration.Servers.Add(new Uri("http://192.168.37.101")); Assert.IsTrue(couchbaseConfiguration.HasServersChanged()); }