public void Given_a_path_it_should_return_0() { var subject = new NoShardingStrategy(); var result = subject.GetShardId("any old string", 4); Assert.AreEqual(0, result); }
public void Given_a_null_path_it_should_throw_ArgumentException() { var subject = new NoShardingStrategy(); Assert.Throws<ArgumentException>(() => subject.GetShardId(null, 1)); }
public void Given_a_null_path_it_should_throw_ArgumentException() { var subject = new NoShardingStrategy(); Assert.Throws <ArgumentException>(() => subject.GetShardId(null, 1)); }