+2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
+
+ * SettingsProviderAttribute.cs :
+ Return assembly qualified name. Check null args.
+ * ConfigXmlDocument.cs : it implements IConfigErrorInfo.
+
2007-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
* SettingsPropertyValue.cs: fixed binary deserealization that may be
{
[PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
public sealed class ConfigXmlDocument : XmlDocument, IConfigXmlNode
+#if NET_2_0 && CONFIGURATION_DEP
+ , System.Configuration.Internal.IConfigErrorInfo
+#endif
{
XmlTextReader reader;
string fileName;
public SettingsProviderAttribute (string providerTypeName)
{
+ if (providerTypeName == null)
+ throw new ArgumentNullException ("providerTypeName");
this.providerTypeName = providerTypeName;
}
public SettingsProviderAttribute (Type providerType)
{
- this.providerTypeName = providerType.Name;
+ if (providerType == null)
+ throw new ArgumentNullException ("providerType");
+ this.providerTypeName = providerType.AssemblyQualifiedName;
}
}
[Test]
- [Category ("NotWorking")]
public void TestSettings2_Properties ()
{
+ // This test will fail when there are newer versions
+ // of the test assemblies - so conditionalize it in
+ // such cases.
+ string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_2_0, Version=0.0.0.0";
+ Assert.AreEqual (expected, new SettingsProviderAttribute (typeof (ProviderPoker)).ProviderTypeName.Substring (0, expected.Length), "#1");
TestSettings2 settings = new TestSettings2 ();
/* should throw ConfigurationException */
+2007-05-28 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ApplicationSettingsBaseTest.cs : enable working test.
+
2007-01-14 Vladimir Krasnov <vladimirk@mainsoft.com>
* SettingsPropertyValueTest.cs: added tests for IsDirty proprty