public async Task TestWrongOperation_GetThrowsException() { Exception thrownException = null; var dut = new AsyncRedisClient(); await dut.Connect(LocalHostDefaultPort.AsConnectionSettings()); try { await dut.SAdd(Key, Value); await dut.Get(Key); } catch (Exception ex) { thrownException = ex; } Assert.IsNotNull(thrownException); Assert.IsInstanceOfType(thrownException, typeof(RedisException)); }