コード例 #1
0
ファイル: HtmlResultTests.cs プロジェクト: jmkelly/Tinyweb
        public void ProcessResult_WhenCreatedWithExistingPath_ReturnsViewData()
        {
            var response = new FakeResponseContext();
            var result = new HtmlResult("..\\..\\Test Data\\HandlerResult\\Views\\View.html");

            result.ProcessResult(null, response);

            Assert.That(response.ContentType, Is.EqualTo("text/html"));
            Assert.That(response.Response, Is.EqualTo("<h1>View</h1>"));
        }