Beispiel #1
0
        public void GetXXssProtectionConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new XXssProtectionConfiguration();

            _systemWebContext.XXssProtection = config;

            var result = _contextHelper.GetXXssProtectionConfiguration(_mockContext);

            Assert.Same(config, result);
        }
Beispiel #2
0
        public void GetXXssProtectionConfiguration_ReturnsContextConfig()
        {
            var config = new XXssProtectionConfiguration();

            _nwContext.XXssProtection = config;

            var result = _contextHelper.GetXXssProtectionConfiguration(_mockContext);

            Assert.Same(config, result);
        }