From 8ac73be9178ac9b7445534522f5b574df29fa560 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Fri, 8 May 2009 06:11:44 +0000 Subject: * Introduced new HttpServer.Tests project * Split the GetAssetStreamHandler testing into separate tests for BaseRequestHandler * Ignored some gens --- .../HttpServer/Tests/BaseRequestHandlerTests.cs | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs (limited to 'OpenSim/Framework/Servers/HttpServer/Tests') diff --git a/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs b/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs new file mode 100644 index 0000000..14998c5 --- /dev/null +++ b/OpenSim/Framework/Servers/HttpServer/Tests/BaseRequestHandlerTests.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Text; +using NUnit.Framework; +using OpenSim.Tests.Common; + +namespace OpenSim.Framework.Servers.HttpServer.Tests +{ + [TestFixture] + public class BaseRequestHandlerTests + { + private const string BASE_PATH = "/testpath"; + + private class BaseRequestHandlerImpl : BaseRequestHandler + { + public BaseRequestHandlerImpl(string httpMethod, string path) : base(httpMethod, path) + { + } + } + + [Test] + public void TestConstructor() + { + BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl( null, null ); + } + + [Test] + public void TestGetParams() + { + BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH); + + BaseRequestHandlerTestHelper.BaseTestGetParams(handler, BASE_PATH); + } + + [Test] + public void TestSplitParams() + { + BaseRequestHandlerImpl handler = new BaseRequestHandlerImpl(null, BASE_PATH); + + BaseRequestHandlerTestHelper.BaseTestSplitParams(handler, BASE_PATH); + } + } +} -- cgit v1.1