2 // System.ComponentModel.PropertyDescriptor test cases
5 // Chris Toshok (toshok@ximian.com)
7 // (c) 2006 Novell, Inc. (http://www.novell.com/)
11 using System.Collections;
12 using System.ComponentModel;
13 using System.Globalization;
15 using NUnit.Framework;
17 namespace MonoTests.System.ComponentModel
20 public class PropertyDescriptorTests
22 class ReadOnlyProperty_test
29 class ReadOnlyAttribute_test
38 class ConflictingReadOnly_test
47 public void ReadOnlyPropertyTest ()
49 PropertyDescriptorCollection col = TypeDescriptor.GetProperties (typeof (ReadOnlyProperty_test));
50 Assert.IsTrue (col["Prop"].IsReadOnly, "1");
54 public void ReadOnlyAttributeTest ()
56 PropertyDescriptorCollection col = TypeDescriptor.GetProperties (typeof (ReadOnlyAttribute_test));
57 Assert.IsTrue (col["Prop"].IsReadOnly, "1");
61 public void ReadOnlyConflictingTest ()
63 PropertyDescriptorCollection col = TypeDescriptor.GetProperties (typeof (ConflictingReadOnly_test));
64 Assert.IsTrue (col["Prop"].IsReadOnly, "1");