public async Task Reply_With_Zero_Against_Empty_List([Values(BEFORE, AFTER)] LINSERT.Where where) { var sut = new LINSERT("non-existent-key", where, "Pivot", "NewElement"); var result = await fixture.ExecuteAsync(sut).ConfigureAwait(false); result.Reply.Should().Be(0); }
public async Task Reply_New_Length_Against_List_With_Pivot([Values(BEFORE, AFTER)] LINSERT.Where where) { Key key = Guid.NewGuid().ToString(); var push = new RPUSH(key, "One", "Two", "Three"); await fixture.ExecuteAsync(push).ConfigureAwait(false); var sut = new LINSERT(key, where, "One", "NewElement"); var result = await fixture.ExecuteAsync(sut).ConfigureAwait(false); result.Reply.Should().Be(4); }