Default IHaveConversionCallbacks
Inheritance: IHaveConversionCallbacks
        public void ConversionCallbacks_ExtensionNotIHaveConversionCallbacks_ShouldUseEmptyOne()
        {
            var extension = new Mock<IExtension>();

            var testee = new HaveConversionCallbacks(extension.Object);
            testee.ConversionCallbacks.Should().BeEmpty();
        }
        public void ConversionCallbacks_ExtensionIsIHaveConversionCallbacks_ShouldAcquireCallbacksFromExtension()
        {
            var extension = new Mock<IExtension>();
            var consumer = extension.As<IHaveConversionCallbacks>();
            var expected = new KeyValuePair<string, IConversionCallback>("Value", Mock.Of<IConversionCallback>());

            consumer.Setup(n => n.ConversionCallbacks).Returns(new Dictionary<string, IConversionCallback> { { expected.Key, expected.Value } });

            var testee = new HaveConversionCallbacks(extension.Object);
            testee.ConversionCallbacks.Should().Contain(expected);
        }