Inheritance: System.Configuration.ApplicationSettingsBase
Ejemplo n.º 1
0
        public void TestSettings2_Properties()
        {
            string expected = "MonoTests.System.Configuration.ProviderPoker, net_4_x_System_test, 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 */
            IEnumerator props = settings.Properties.GetEnumerator();
        }
Ejemplo n.º 2
0
        public void TestSettings2_Properties()
        {
            // This test will fail when there are newer versions
            // of the test assemblies - so conditionalize it in
            // such cases.
#if TARGET_JVM
            string expected = "MonoTests.System.Configuration.ProviderPoker, System.Test, Version=0.0.0.0";
#else
            string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_2_0, Version=0.0.0.0";
#endif
            Assert.AreEqual(expected, new SettingsProviderAttribute(typeof(ProviderPoker)).ProviderTypeName.Substring(0, expected.Length), "#1");
            TestSettings2 settings = new TestSettings2();

            /* should throw ConfigurationException */
            IEnumerator props = settings.Properties.GetEnumerator();
        }
Ejemplo n.º 3
0
		public void TestSettings2_Properties ()
		{
			string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_4_x, 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 */
			IEnumerator props = settings.Properties.GetEnumerator();
		}
Ejemplo n.º 4
0
		public void TestSettings2_Properties ()
		{
			// This test will fail when there are newer versions
			// of the test assemblies - so conditionalize it in
			// such cases.
#if   NET_4_5
			string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_4_5, Version=0.0.0.0";
#elif NET_4_0
			string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_4_0, Version=0.0.0.0";
#else
			string expected = "MonoTests.System.Configuration.ProviderPoker, System_test_net_2_0, Version=0.0.0.0";
#endif
			Assert.AreEqual (expected, new SettingsProviderAttribute (typeof (ProviderPoker)).ProviderTypeName.Substring (0, expected.Length), "#1");
			TestSettings2 settings = new TestSettings2 ();

			/* should throw ConfigurationException */
			IEnumerator props = settings.Properties.GetEnumerator();
		}