コード例 #1
0
        public void ConstructorSetsViewEngineAndViewEngineType()
        {
            // Arrange
            var viewEngine = new TestValueProviderFactory();

            // Act
            var descriptor = new ValueProviderFactoryDescriptor(viewEngine);

            // Assert
            Assert.Same(viewEngine, descriptor.Instance);
            Assert.Equal(viewEngine.GetType(), descriptor.OptionType);
        }
コード例 #2
0
        public void ConstructorSetsViewEngineAndViewEngineType()
        {
            // Arrange
            var viewEngine = new TestValueProviderFactory();

            // Act
            var descriptor = new ValueProviderFactoryDescriptor(viewEngine);

            // Assert
            Assert.Same(viewEngine, descriptor.Instance);
            Assert.Equal(viewEngine.GetType(), descriptor.OptionType);
        }