private fill_only_writes_if_there_is_not_previous_value ( ) : void | ||
return | void |
public void fill_only_writes_if_there_is_not_previous_value()
{
cache.Fill("a", 1);
cache["a"].ShouldBe(1);
cache.Fill("a", 2);
cache["a"].ShouldBe(1); // did not overwrite
}