I don't understand how missing keys in extra lazy collections are
supposed to be handled.

According to the collection contract, there should be
KeyNotFoundException, which the test in NH2489/Fixture.cs verifies:
Map_Item():
    Executing.This(() => { Child ignored =
entity.NamedChildren["InvalidKey"];
}).Should().Throw<KeyNotFoundException>();

But the test in ExtraLazyFixture.Get() does:
    Assert.That(g.Users["emmanuel"], Is.Null);
(where emmanuel is never added)


Both of these test cases passes. Hence my confusion....  Anyone know
what's going on?

/Oskar

Reply via email to