@@ -62,7 +62,7 @@ private static Func<string> GetAssemblyLocationInfoMethodCall()
6262
6363 [ System . Diagnostics . CodeAnalysis . SuppressMessage ( "Structure" , "NUnit1028:The non-test method is public" ,
6464 Justification = "Reflection" ) ]
65- public static string TestAssemblyLocationInfoMethod ( )
65+ public static string TestAssemblyLocationInfoMethod ( )
6666 => SystemInfo . AssemblyLocationInfo ( Assembly . GetCallingAssembly ( ) ) ;
6767
6868 [ Test ]
@@ -133,8 +133,8 @@ public void TestGetTypeFromStringFails1()
133133 t = GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST,LOG4NET.TESTS" , false , false ) ;
134134 Assert . That ( t , Is . Null , "Test explicit case sensitive fails type load" ) ;
135135
136- Assert . Throws < TypeLoadException > (
137- ( ) => GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST,LOG4NET.TESTS" , true , false ) ) ;
136+ Assert . That ( ( ) => GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST,LOG4NET.TESTS" , true , false ) ,
137+ Throws . TypeOf < TypeLoadException > ( ) ) ;
138138 }
139139
140140 [ Test ]
@@ -145,36 +145,37 @@ public void TestGetTypeFromStringFails2()
145145 t = GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST" , false , false ) ;
146146 Assert . That ( t , Is . Null , "Test explicit case sensitive fails type load" ) ;
147147
148- Assert . Throws < TypeLoadException > ( ( ) => GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST" , true , false ) ) ;
148+ Assert . That ( ( ) => GetTypeFromString ( "LOG4NET.TESTS.UTIL.SYSTEMINFOTEST" , true , false ) ,
149+ Throws . TypeOf < TypeLoadException > ( ) ) ;
149150 }
150151
151152 // Wraps SystemInfo.GetTypeFromString because the method relies on GetCallingAssembly, which is
152153 // unavailable in CoreFX. As a workaround, only overloads which explicitly take a Type or Assembly
153154 // are exposed for NETSTANDARD1_3.
154- private static Type ? GetTypeFromString ( string typeName , bool throwOnError , bool ignoreCase )
155+ private static Type ? GetTypeFromString ( string typeName , bool throwOnError , bool ignoreCase )
155156 => SystemInfo . GetTypeFromString ( typeName , throwOnError , ignoreCase ) ;
156157
157158 [ Test ]
158- public void EqualsIgnoringCase_BothNull_true ( )
159+ public void EqualsIgnoringCase_BothNull_true ( )
159160 => Assert . That ( SystemInfo . EqualsIgnoringCase ( null , null ) , Is . True ) ;
160161
161162 [ Test ]
162- public void EqualsIgnoringCase_LeftNull_false ( )
163+ public void EqualsIgnoringCase_LeftNull_false ( )
163164 => Assert . That ( SystemInfo . EqualsIgnoringCase ( null , "foo" ) , Is . False ) ;
164165
165166 [ Test ]
166- public void EqualsIgnoringCase_RightNull_false ( )
167+ public void EqualsIgnoringCase_RightNull_false ( )
167168 => Assert . That ( SystemInfo . EqualsIgnoringCase ( "foo" , null ) , Is . False ) ;
168169
169170 [ Test ]
170- public void EqualsIgnoringCase_SameStringsSameCase_true ( )
171+ public void EqualsIgnoringCase_SameStringsSameCase_true ( )
171172 => Assert . That ( SystemInfo . EqualsIgnoringCase ( "foo" , "foo" ) , Is . True ) ;
172173
173174 [ Test ]
174- public void EqualsIgnoringCase_SameStringsDifferentCase_true ( )
175+ public void EqualsIgnoringCase_SameStringsDifferentCase_true ( )
175176 => Assert . That ( SystemInfo . EqualsIgnoringCase ( "foo" , "FOO" ) , Is . True ) ;
176177
177178 [ Test ]
178- public void EqualsIgnoringCase_DifferentStrings_false ( )
179+ public void EqualsIgnoringCase_DifferentStrings_false ( )
179180 => Assert . That ( SystemInfo . EqualsIgnoringCase ( "foo" , "foobar" ) , Is . False ) ;
180181}
0 commit comments