123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using System;
- using System.Collections.Generic;
- using System.Collections.Specialized;
- using System.Diagnostics;
- using System.IO;
- using System.Linq;
- using System.Net;
- using System.Text;
- using System.Threading;
- using CassiniDev.ServerLog;
- using Microsoft.Win32;
- using NUnit.Framework;
- namespace CassiniDev.NUnitFixtures.Tests
- {
- [TestFixture]
- public class CassiniDevBrowserTestFixture
- {
-
-
-
-
- [Test]
- public void TestIE()
- {
- const string applicationPath = @"..\..\..\..\CassiniDev.TestSite";
- var test = new CassiniDevBrowserTest();
- test.StartServer(Path.GetFullPath(applicationPath));
- var uri = test.NormalizeUrl("qunit-callback.htm");
- RequestEventArgs result = test.RunTest(uri, WebBrowser.InternetExplorer);
- var body = Encoding.UTF8.GetString(result.RequestLog.Body);
- test.StopServer();
- }
-
-
-
-
-
- [Test]
- public void TestFF()
- {
- const string applicationPath = @"..\..\..\..\CassiniDev.TestSite";
- var test = new CassiniDevBrowserTest();
- test.StartServer(Path.GetFullPath(applicationPath));
- var uri = test.NormalizeUrl("qunit-callback.htm");
- RequestEventArgs result = test.RunTest(uri, WebBrowser.Firefox);
- var body = Encoding.UTF8.GetString(result.RequestLog.Body);
- test.StopServer();
- }
-
-
-
-
- [Test]
- public void TestChrome()
- {
- const string applicationPath = @"..\..\..\..\CassiniDev.TestSite";
- var test = new CassiniDevBrowserTest();
- test.StartServer(Path.GetFullPath(applicationPath));
- var uri = test.NormalizeUrl("qunit-callback.htm");
- RequestEventArgs result = test.RunTest(uri, WebBrowser.Chrome);
- var body = Encoding.UTF8.GetString(result.RequestLog.Body);
- test.StopServer();
- }
- }
- }
|