public void TryAdd_Should_ReturnFalse_When_TryConvertReturnFalse() { var source = _fixture.Create <string>(); _jsonConvertible.TryConvert(source, out Arg.Any <object>()) .Returns(x => { x[1] = null; return(false); }); _collection.TryAdd(source, out _).Should().BeFalse(); _jsonConvertible .Received(1) .TryConvert(source, out Arg.Any <object>()); }