2006-11-02 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.Web.Services / Test / standalone / client / localhost / SessionCounterTest.cs
1 // Web service test for WSDL document:
2 // http://localhost:8080/SessionCounter.asmx?wsdl
3
4 using System;
5 using System.Net;
6 using NUnit.Framework;
7 using SessionCounterTests.Soap;
8
9 namespace Localhost.SessionCounterTests
10 {
11         [TestFixture]
12         public class SessionCounterTest: WebServiceTest
13         {
14                 [Test]
15                 public void TestService ()
16                 {
17                         SessionCounter s = new SessionCounter ();
18                         s.CookieContainer = new CookieContainer ();
19                         s.Reset ();
20                         for (int n=1; n<10; n++)
21                                 Assert.AreEqual (n, s.AddOne (), "t"+n);
22                 }
23         }
24 }