Пример #1
0
        public void GetXContentTypeOptionsConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new SimpleBooleanConfiguration();

            _systemWebContext.XContentTypeOptions = config;

            var result = _contextHelper.GetXContentTypeOptionsConfiguration(_mockContext);

            Assert.Same(config, result);
        }
Пример #2
0
        public void GetXContentTypeOptionsConfiguration_ReturnsContextConfig()
        {
            var config = new SimpleBooleanConfiguration();

            _nwContext.XContentTypeOptions = config;

            var result = _contextHelper.GetXContentTypeOptionsConfiguration(_mockContext);

            Assert.AreSame(config, result);
        }