Example #1
0
        public void MustReturnDefaultWhenTypeDoesntExist()
        {
            var doesExistBefore = _sut.TryGet(out AnotherFakeContext newContext);

            Assert.False(doesExistBefore);
            Assert.Null(newContext);
            var c1New          = _sut.GetOrDefault <AnotherFakeContext>();
            var doesExistAfter = _sut.TryGet(out newContext);

            Assert.Equal(default, c1New);