public void MustReturnNewOfTWhenTypeDoesntExist() { var doesExistBefore = _sut.TryGet(out AnotherFakeContext newContext); Assert.False(doesExistBefore); Assert.Null(newContext); var c1New = _sut.GetOrNew <AnotherFakeContext>(); var doesExistAfter = _sut.TryGet(out newContext); Assert.Equal(newContext, c1New); Assert.True(doesExistAfter); }