Author: igorz
Date: 2008-02-19 02:35:52 -0500 (Tue, 19 Feb 2008)
New Revision: 96118

Added:
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
Modified:
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChangeLog
   
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
Log:
2008-02-17  Igor Zelmanovich <[EMAIL PROTECTED]>

        * BasicHttpBindingElementTest.cs:
        * NetNamedPipeBindingElementTest.cs:
        * NetPeerTcpBindingElementTest.cs:
        * NetTcpBindingElementTest.cs:
        * ServiceModelSectionGroupTest.cs:
        * StandardBindingCollectionElementTest.cs:
        new tests.


Added: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
 2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/BasicHttpBindingElementTest.cs
 2008-02-19 07:35:52 UTC (rev 96118)
@@ -0,0 +1,54 @@
+//
+// BasicHttpBindingElementTest.cs
+//
+// Author:
+//     Igor Zelmanovich <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.ServiceModel.Configuration;
+using System.ServiceModel;
+
+namespace MonoTests.System.ServiceModel.Configuration
+{
+       [TestFixture]
+       public class BasicHttpBindingElementTest
+       {
+               class Poker : BasicHttpBindingElement
+               {
+                       public Type GetBindingElementType () {
+                               return BindingElementType;
+                       }
+               }
+
+               [Test]
+               public void BindingElementType () {
+                       Poker poker = new Poker ();
+                       Assert.AreEqual (typeof (BasicHttpBinding), 
poker.GetBindingElementType (), "BindingElementType");
+               }
+       }
+}

Modified: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChangeLog
      2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ChangeLog
      2008-02-19 07:35:52 UTC (rev 96118)
@@ -1,5 +1,15 @@
 2008-02-17  Igor Zelmanovich <[EMAIL PROTECTED]>
 
+       * BasicHttpBindingElementTest.cs:
+       * NetNamedPipeBindingElementTest.cs:
+       * NetPeerTcpBindingElementTest.cs:
+       * NetTcpBindingElementTest.cs:
+       * ServiceModelSectionGroupTest.cs:
+       * StandardBindingCollectionElementTest.cs:
+       new tests.
+       
+2008-02-17  Igor Zelmanovich <[EMAIL PROTECTED]>
+
        * StandardBindingElementCollectionTest.cs new test.
        
 2006-06-27  Atsushi Enomoto  <[EMAIL PROTECTED]>

Added: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
      2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetNamedPipeBindingElementTest.cs
      2008-02-19 07:35:52 UTC (rev 96118)
@@ -0,0 +1,54 @@
+//
+// NetNamedPipeBindingElement.cs
+//
+// Author:
+//     Igor Zelmanovich <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.ServiceModel.Configuration;
+using System.ServiceModel;
+
+namespace MonoTests.System.ServiceModel.Configuration
+{
+       [TestFixture]
+       public class NetNamedPipeBindingElementTest
+       {
+               class Poker : NetNamedPipeBindingElement
+               {
+                       public Type GetBindingElementType () {
+                               return BindingElementType;
+                       }
+               }
+
+               [Test]
+               public void BindingElementType () {
+                       Poker poker = new Poker ();
+                       Assert.AreEqual (typeof (NetNamedPipeBinding), 
poker.GetBindingElementType (), "BindingElementType");
+               }
+       }
+}

Added: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
        2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetPeerTcpBindingElementTest.cs
        2008-02-19 07:35:52 UTC (rev 96118)
@@ -0,0 +1,54 @@
+//
+// NetPeerTcpBindingElementTest.cs
+//
+// Author:
+//     Igor Zelmanovich <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.ServiceModel.Configuration;
+using System.ServiceModel;
+
+namespace MonoTests.System.ServiceModel.Configuration
+{
+       [TestFixture]
+       public class NetPeerTcpBindingElementTest
+       {
+               class Poker : NetPeerTcpBindingElement
+               {
+                       public Type GetBindingElementType () {
+                               return BindingElementType;
+                       }
+               }
+
+               [Test]
+               public void BindingElementType () {
+                       Poker poker = new Poker ();
+                       Assert.AreEqual (typeof (NetPeerTcpBinding), 
poker.GetBindingElementType (), "BindingElementType");
+               }
+       }
+}

Added: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
    2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/NetTcpBindingElementTest.cs
    2008-02-19 07:35:52 UTC (rev 96118)
@@ -0,0 +1,54 @@
+//
+// NetTcpBindingElementTest.cs
+//
+// Author:
+//     Igor Zelmanovich <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2008 Mainsoft, Inc.  http://www.mainsoft.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.ServiceModel.Configuration;
+using System.ServiceModel;
+
+namespace MonoTests.System.ServiceModel.Configuration
+{
+       [TestFixture]
+       public class NetTcpBindingElementTest
+       {
+               class Poker : NetTcpBindingElement
+               {
+                       public Type GetBindingElementType () {
+                               return BindingElementType;
+                       }
+               }
+
+               [Test]
+               public void BindingElementType () {
+                       Poker poker = new Poker ();
+                       Assert.AreEqual (typeof (NetTcpBinding), 
poker.GetBindingElementType (), "BindingElementType");
+               }
+       }
+}

Modified: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
        2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/ServiceModelSectionGroupTest.cs
        2008-02-19 07:35:52 UTC (rev 96118)
@@ -57,18 +57,24 @@
                [Test]
                public void GetSectionGroup ()
                {
-                       ServiceModelSectionGroup g = GetConfig 
("Test/config/test1.config");
+                       ServiceModelSectionGroup g = GetConfig 
("Test/config/test1");
                        Assert.IsNotNull (g.Bindings, "bindings");
                        Assert.IsNotNull (g.Client, "client");
                        Assert.IsNotNull (g.Services, "services");
                        Assert.IsNotNull (g.Client.Endpoints, 
"client/endpoint*");
                }
 
-               /*
                [Test]
+               public void BindingCollections () {
+                       ServiceModelSectionGroup g = GetConfig 
("Test/config/test1.config");
+                       List<BindingCollectionElement> coll = 
g.Bindings.BindingCollections;
+                       Assert.AreEqual (20, coll.Count, "Count");
+               }
+
+               [Test]
                public void Endpoints ()
                {
-                       ServiceModelSectionGroup g = GetConfig 
("Test/config/test1.config");
+                       ServiceModelSectionGroup g = GetConfig 
("Test/config/test1");
                        ChannelEndpointElementCollection col = 
g.Client.Endpoints;
                        Assert.AreEqual (1, col.Count, "initial count");
                        ChannelEndpointElement e = col [0];
@@ -78,6 +84,5 @@
                        col.Add (new ChannelEndpointElement ());
                        Assert.AreEqual (2, col.Count, "after Add()");
                }
-               */
        }
 }

Added: 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
        2008-02-19 07:11:46 UTC (rev 96117)
+++ 
trunk/olive/class/System.ServiceModel/Test/System.ServiceModel.Configuration/StandardBindingCollectionElementTest.cs
        2008-02-19 07:35:52 UTC (rev 96118)
@@ -0,0 +1,60 @@
+//
+// StandardBindingCollectionElementTest.cs
+//
+// Author:
+//     Igor Zelmanovich <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2006 Novell, Inc.  http://www.novell.com
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using NUnit.Framework;
+using System.ServiceModel.Configuration;
+using System.ServiceModel;
+using System.Configuration;
+
+namespace MonoTests.System.ServiceModel.Configuration
+{
+       [TestFixture]
+       public class StandardBindingCollectionElementTest
+       {
+               class Poker : 
StandardBindingCollectionElement<BasicHttpBinding, BasicHttpBindingElement>
+               {
+                       public ConfigurationPropertyCollection GetProperties () 
{
+                               return Properties;
+                       }
+               }
+
+               [Test]
+               public void Properties () {
+                       Poker poker = new Poker ();
+                       ConfigurationPropertyCollection coll = 
poker.GetProperties ();
+                       Assert.AreEqual (1, coll.Count, "Count");
+
+                       foreach (ConfigurationProperty prop in coll) {
+                               Assert.AreEqual ("", prop.Name);
+                       }
+               }
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to