Exemplo n.º 1
0
        public void GetMaxAllowedContentLength_InvalidPath_ReturnsDefault()
        {
            WebConfigurationManagerHelper._maxAllowedContentLength = 0;

            Assert.Equal(
                WebConfigurationManagerHelper.DefaultMaxAllowedContentLength,
                WebConfigurationManagerHelper.GetMaxAllowedContentLength(_webConfig)
                );
        }
Exemplo n.º 2
0
        public void GetMaxAllowedContentLength_ValueSet_ReturnsValue()
        {
            var setValue = 10;

            WebConfigurationManagerHelper._maxAllowedContentLength = setValue;

            Assert.Equal(
                setValue,
                WebConfigurationManagerHelper.GetMaxAllowedContentLength(_webConfig)
                );
        }