Example #1
0
        public void GetFirstByLowestScoreFromSet_WithNullKey_Throws()
        {
            // GIVEN
            const string key       = null;
            const double fromScore = 10;
            const double toScore   = 15;

            // WHEN THEN
            Assert.Throws <ArgumentNullException>(() => _elasticConnection.GetFirstByLowestScoreFromSet(key, fromScore, toScore));
        }
 public void GetFirstByLowestScoreFromSet_Throws()
 {
     // GIVEN WHEN THEN
     Assert.Throws <HangfireElasticSearchException>(() => _elasticConnection.GetFirstByLowestScoreFromSet("key", 10, 15));
 }