Browse Source

In Test/System.ComponentModel:
* ComplexBindingPropertiesAttributeTest.cs: add test for Default
field.

2006-12-20 Chris Toshok <[email protected]>

In System.ComponentModel:
* ComplexBindingPropertiesAttribute.cs: add Default field.

2006-12-20 Chris Toshok <[email protected]>


svn path=/trunk/mcs/; revision=69845

Chris Toshok 19 years ago
parent
commit
e8564cfa57

+ 4 - 0
mcs/class/System/System.ComponentModel/ChangeLog

@@ -1,3 +1,7 @@
+2006-12-20  Chris Toshok  <[email protected]>
+
+	* ComplexBindingPropertiesAttribute.cs: add Default field.
+
 2006-12-20  Chris Toshok  <[email protected]>
 2006-12-20  Chris Toshok  <[email protected]>
 
 
 	* ComplexBindingPropertiesAttribute.cs: new 2.0 attribute.
 	* ComplexBindingPropertiesAttribute.cs: new 2.0 attribute.

+ 2 - 0
mcs/class/System/System.ComponentModel/ComplexBindingPropertiesAttribute.cs

@@ -33,6 +33,8 @@ namespace System.ComponentModel
 		string data_source;
 		string data_source;
 		string data_member;
 		string data_member;
 
 
+		public static readonly ComplexBindingPropertiesAttribute Default = new ComplexBindingPropertiesAttribute ();
+
 		public ComplexBindingPropertiesAttribute (string dataSource, string dataMember)
 		public ComplexBindingPropertiesAttribute (string dataSource, string dataMember)
 		{
 		{
 			data_source = dataSource;
 			data_source = dataSource;

+ 5 - 0
mcs/class/System/Test/System.ComponentModel/ChangeLog

@@ -1,3 +1,8 @@
+2006-12-20  Chris Toshok  <[email protected]>
+
+	* ComplexBindingPropertiesAttributeTest.cs: add test for Default
+	field.
+
 2006-12-20  Chris Toshok  <[email protected]>
 2006-12-20  Chris Toshok  <[email protected]>
 
 
 	* ComplexBindingPropertiesAttributeTest.cs: new tests.
 	* ComplexBindingPropertiesAttributeTest.cs: new tests.

+ 6 - 0
mcs/class/System/Test/System.ComponentModel/ComplexBindingPropertiesAttributeTest.cs

@@ -77,6 +77,12 @@ namespace MonoTests.System.ComponentModel {
 			a = new ComplexBindingPropertiesAttribute ();
 			a = new ComplexBindingPropertiesAttribute ();
 			Assert.IsFalse (0 == a.GetHashCode (), "3");
 			Assert.IsFalse (0 == a.GetHashCode (), "3");
 		}
 		}
+
+		[Test]
+		public void DefaultTest ()
+		{
+			Assert.AreEqual (ComplexBindingPropertiesAttribute.Default, new ComplexBindingPropertiesAttribute (), "1");
+		}
 	}
 	}
 
 
 }
 }