public void Deleting_a_key_should_mark_it_as_changed() { // Given var session = new Session(new Dictionary<string, object> { { "key", 1 } }); // When session.Delete("key"); // Then session.HasChanged.ShouldBeTrue(); }
public void Deleting_an_invalid_key_should_not_mark_it_as_changed() { // Given var session = new Session(new Dictionary<string, object> { { "key", 1 } }); // When session.Delete("something"); // Then session.HasChanged.ShouldBeFalse(); }