Пример #1
0
        public void WithEmptyFallbackItem_ValidFallbackItem_Success()
        {
            IFallbackItem        fallback    = new FixedValueFallback(10);
            OneToOneMap <string> propertyMap = Map(t => t.Value);

            Assert.Same(propertyMap, propertyMap.WithEmptyFallbackItem(fallback));

            Assert.Same(fallback, propertyMap.Pipeline.EmptyFallback);
        }
Пример #2
0
        public void WithEmptyFallbackItem_NullFallbackItem_ThrowsArgumentNullException()
        {
            OneToOneMap <string> propertyMap = Map(t => t.Value);

            Assert.Throws <ArgumentNullException>("fallbackItem", () => propertyMap.WithEmptyFallbackItem(null));
        }