123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Text;
- using NUnit.Framework;
- namespace CassiniDev.NUnitFixtures.Tests
- {
-
-
-
- [TestFixture]
- public class CacheControlFixture : CassiniDevServer
- {
- [TestFixtureSetUp]
- public void TestFixtureSetUp()
- {
- const string applicationPath = @"..\..\..\..\CassiniDev.TestSite";
- StartServer(applicationPath);
- }
- [TestFixtureTearDown]
- public void TestFixtureTearDown()
- {
- StopServer();
- }
-
-
-
-
-
-
- [Test]
- public void Test()
- {
-
- Server.RequestComplete += new EventHandler<RequestEventArgs>(Server_RequestComplete);
- string url = NormalizeUrl("static.txt");
- var client = new WebClient();
- var content = client.DownloadString(url);
- }
- void Server_RequestComplete(object sender, RequestEventArgs e)
- {
-
- }
- }
- }
|