RadioButtonList.cs: Implemented properties of IRepeatInfoUser as public virtual
authorAdar Wesley <adar@mono-cvs.ximian.com>
Thu, 4 Jan 2007 09:00:59 +0000 (09:00 -0000)
committerAdar Wesley <adar@mono-cvs.ximian.com>
Thu, 4 Jan 2007 09:00:59 +0000 (09:00 -0000)
svn path=/trunk/mcs/; revision=70457

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/RadioButtonList.cs
mcs/class/System.Web/Test/System.Web.UI.WebControls/RadioButtonListTest.cs

index 7ae3c4ee039f452207e0ef80812fe47a22f67815..b8ca21251d5c904234498c3328131ada4ca5f30d 100644 (file)
@@ -1,3 +1,7 @@
+2007-01-4   Adar Wesley <adarw@mainsoft.com>
+
+       * RadioButtonList.cs: Implemented properties of IRepeatInfoUser as public virtual
+
 2007-01-03  Marek Habersack  <grendello@gmail.com>
 
        * ObjectDataSourceView.cs: Look for unqualified type also in the top-level assemblies.
index 323cfd73b154b1d83a5be954d55b24f2c648c052..5ea853120eef7f012188d4a3f374d65c6c0f8e3e 100644 (file)
@@ -173,53 +173,47 @@ namespace System.Web.UI.WebControls {
                // Interface properties
 
 #if NET_2_0
-               [MonoTODO ("Not implemented")]
-               protected virtual bool HasFooter
-               {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+               protected virtual
+#endif
+               bool HasFooter {
+                       get { return false; }
                }
 
-               [MonoTODO ("Not implemented")]
-               protected virtual bool HasHeader 
-               {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+#if NET_2_0
+               protected virtual
+#endif
+               bool HasHeader {
+                       get { return false; }
                }
 
-               [MonoTODO]
-               protected virtual bool HasSeparators
-               {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-               
-               [MonoTODO ("Not implemented")]
-               protected virtual int RepeatedItemCount
-               {
-                       get {
-                               throw new NotImplementedException ();
-                       }
+#if NET_2_0
+               protected virtual
+#endif
+               bool HasSeparators {
+                       get { return false; }
                }
+
+#if NET_2_0
+               protected virtual
 #endif
+               int RepeatedItemCount {
+                       get { return Items.Count; }
+               }
                
                bool IRepeatInfoUser.HasFooter {
-                       get { return false; }
+                       get { return HasFooter; }
                }
 
                bool IRepeatInfoUser.HasHeader {
-                       get { return false; }
+                       get { return HasHeader; }
                }
 
                bool IRepeatInfoUser.HasSeparators {
-                       get { return false; }
+                       get { return HasSeparators; }
                }
 
                int IRepeatInfoUser.RepeatedItemCount {
-                       get { return Items.Count; }
+                       get { return RepeatedItemCount; }
                }
 
                protected override Style CreateControlStyle ()
@@ -228,10 +222,12 @@ namespace System.Web.UI.WebControls {
                }
 
 #if NET_2_0
-               [MonoTODO ("Not implemented")]
+               // MSDN: Searches the current naming container for a server control 
+               // with the specified ID and path offset. The FindControl method 
+               // always returns the RadioButtonList object. 
                protected override Control FindControl (string id, int pathOffset)
                {
-                       throw new NotImplementedException ();
+                       return this;
                }
 #endif
 
@@ -362,3 +358,4 @@ namespace System.Web.UI.WebControls {
 }
 
 
+
index 39bef6198fa3a061355f5393cca84cb93df25bc6..35cc349ce01aa70239077832f72ac1123ebbb229 100644 (file)
@@ -319,8 +319,7 @@ namespace MonoTests.System.Web.UI.WebControls {
                
 #if NET_2_0
                [Test]
-               [Category ("NotWorking")]
-               public void Defaults_NotWorking ()
+               public void Defaults ()
                {
                        PokerRadioButtonList r = new PokerRadioButtonList ();
                        Assert.AreEqual (0, r.RepeatedItemCount, "RepeatedItemCount");
@@ -371,7 +370,6 @@ namespace MonoTests.System.Web.UI.WebControls {
                }
 
                [Test]
-               [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void RaisePostDataChangedEvent_PostBack ()
                {
@@ -446,7 +444,6 @@ namespace MonoTests.System.Web.UI.WebControls {
                #endregion
 
                [Test]
-               [Category ("NotWorking")]
                [Category ("NunitWeb")]
                public void LoadPostData ()  //Just flow and not implementation detail
                {
@@ -496,7 +493,6 @@ namespace MonoTests.System.Web.UI.WebControls {
                }
 
                [Test]
-               [Category ("NotWorking")] //Not implemented 
                public void RepeatedItemCount ()
                {
                        PokerRadioButtonList r = new PokerRadioButtonList ();