diff --git a/SafeExamBrowser.Browser.UnitTests/Handlers/ResourceHandlerTests.cs b/SafeExamBrowser.Browser.UnitTests/Handlers/ResourceHandlerTests.cs index cc921db6..cd27be64 100644 --- a/SafeExamBrowser.Browser.UnitTests/Handlers/ResourceHandlerTests.cs +++ b/SafeExamBrowser.Browser.UnitTests/Handlers/ResourceHandlerTests.cs @@ -49,18 +49,20 @@ namespace SafeExamBrowser.Browser.UnitTests.Handlers } [TestMethod] - public void MustAppendCustomHeaders() + public void MustAppendCustomHeadersForSameDomain() { + var browser = new Mock(); var headers = default(NameValueCollection); var request = new Mock(); + browser.SetupGet(b => b.Address).Returns("http://www.host.org"); request.SetupGet(r => r.Headers).Returns(new NameValueCollection()); request.SetupGet(r => r.Url).Returns("http://www.host.org"); request.SetupSet(r => r.Headers = It.IsAny()).Callback((h) => headers = h); settings.SendConfigurationKey = true; settings.SendExamKey = true; - var result = sut.OnBeforeResourceLoad(Mock.Of(), Mock.Of(), Mock.Of