예제 #1
0
        public void GetXDownloadOptionsConfiguration_NoOwinContext_ReturnsSystemWebConfig()
        {
            var config = new SimpleBooleanConfiguration();

            _systemWebContext.XDownloadOptions = config;

            var result = _contextHelper.GetXDownloadOptionsConfiguration(_mockContext);

            Assert.Same(config, result);
        }
예제 #2
0
        public void GetXDownloadOptionsConfiguration_ReturnsContextConfig()
        {
            var config = new SimpleBooleanConfiguration();

            _nwContext.XDownloadOptions = config;

            var result = _contextHelper.GetXDownloadOptionsConfiguration(_mockContext);

            Assert.AreSame(config, result);
        }