コード例 #1
0
        public void GetMaxAllowedContentLength_InvalidPath_ReturnsDefault()
        {
            WebConfigurationManagerHelper._maxAllowedContentLength = 0;

            Assert.Equal(
                WebConfigurationManagerHelper.DefaultMaxAllowedContentLength,
                WebConfigurationManagerHelper.GetMaxAllowedContentLength(_webConfig)
                );
        }
コード例 #2
0
        public void GetMaxAllowedContentLength_ValueSet_ReturnsValue()
        {
            var setValue = 10;

            WebConfigurationManagerHelper._maxAllowedContentLength = setValue;

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