logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1170497 - /logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs
Date Wed, 14 Sep 2011 09:28:28 GMT
Author: bodewig
Date: Wed Sep 14 09:28:27 2011
New Revision: 1170497

URL: http://svn.apache.org/viewvc?rev=1170497&view=rev
Log:
At least for Mono on Linux Type.GetType is always case sensitive on assembly names.  The caseInsensitive
flag only seems to apply to the type name.

Modified:
    logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs

Modified: logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs?rev=1170497&r1=1170496&r2=1170497&view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs (original)
+++ logging/log4net/trunk/tests/src/Util/SystemInfoTest.cs Wed Sep 14 09:28:27 2011
@@ -39,6 +39,18 @@ namespace log4net.Tests.Util
 			t = SystemInfo.GetTypeFromString("log4net.Tests.Util.SystemInfoTest,log4net.Tests", false,
false);
 			Assert.AreSame(typeof(SystemInfoTest), t, "Test explicit case sensitive type load");
 
+			t = SystemInfo.GetTypeFromString("LOG4NET.TESTS.UTIL.SYSTEMINFOTEST,log4net.Tests", false,
true);
+			Assert.AreSame(typeof(SystemInfoTest), t, "Test explicit case in-sensitive type load caps");
+
+			t = SystemInfo.GetTypeFromString("log4net.tests.util.systeminfotest,log4net.Tests", false,
true);
+			Assert.AreSame(typeof(SystemInfoTest), t, "Test explicit case in-sensitive type load lower");
+		}
+
+                [Test][Platform(Include="Win")]
+		public void TestGetTypeFromStringCaseInsensitiveOnAssemblyName()
+		{
+			Type t;
+
 			t = SystemInfo.GetTypeFromString("LOG4NET.TESTS.UTIL.SYSTEMINFOTEST,LOG4NET.TESTS", false,
true);
 			Assert.AreSame(typeof(SystemInfoTest), t, "Test explicit case in-sensitive type load caps");
 



Mime
View raw message