public void CreatedWithConstantConsumer()
        {
            var local = new DocumentLocal <int>(4);
            var value = local.Get(Document);

            Assert.Equal(4, value);
        }
        public void CreatedWithDynamicConsumer()
        {
            var local = new DocumentLocal <List <object> >(() => new List <object>());
            var value = local.Get(Document);

            Assert.NotNull(value);
            Assert.Empty(value);
        }
        public void NullConsumerValue()
        {
            var local = new DocumentLocal <object>(() => null);

            Assert.Null(local.Get(new Document()));
        }
        public void NullDefaultValue()
        {
            var local = new DocumentLocal <object>((object)null);

            Assert.Null(local.Get(new Document()));
        }