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);
            }
Пример #2
0
 public void Given_a_null_path_it_should_throw_ArgumentException()
 {
     var subject = new NoShardingStrategy();
     Assert.Throws<ArgumentException>(() => subject.GetShardId(null, 1));
 }
Пример #3
0
 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));
            }