public void GetMaxAllowedContentLength_InvalidPath_ReturnsDefault() { WebConfigurationManagerHelper._maxAllowedContentLength = 0; Assert.Equal( WebConfigurationManagerHelper.DefaultMaxAllowedContentLength, WebConfigurationManagerHelper.GetMaxAllowedContentLength(_webConfig) ); }
public void GetMaxAllowedContentLength_ValueSet_ReturnsValue() { var setValue = 10; WebConfigurationManagerHelper._maxAllowedContentLength = setValue; Assert.Equal( setValue, WebConfigurationManagerHelper.GetMaxAllowedContentLength(_webConfig) ); }