|
|
|
@ -6,10 +6,12 @@ |
|
|
|
// </file>
|
|
|
|
// </file>
|
|
|
|
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Reflection; |
|
|
|
using System.Reflection; |
|
|
|
using NUnit.Framework; |
|
|
|
|
|
|
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
|
using ICSharpCode.SharpDevelop.Dom; |
|
|
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
using ICSharpCode.SharpDevelop.Project; |
|
|
|
|
|
|
|
using NUnit.Framework; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SharpDevelop.Tests |
|
|
|
namespace ICSharpCode.SharpDevelop.Tests |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -29,11 +31,17 @@ namespace ICSharpCode.SharpDevelop.Tests |
|
|
|
public void TestClasses() |
|
|
|
public void TestClasses() |
|
|
|
{ |
|
|
|
{ |
|
|
|
TestClass(typeof(object)); |
|
|
|
TestClass(typeof(object)); |
|
|
|
TestClass(typeof(Environment.SpecialFolder)); |
|
|
|
|
|
|
|
TestClass(typeof(Nullable)); |
|
|
|
TestClass(typeof(Nullable)); |
|
|
|
TestClass(typeof(Nullable<>)); |
|
|
|
TestClass(typeof(Nullable<>)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
|
|
|
public void TestNestedClass() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
TestClass(typeof(Environment.SpecialFolder)); |
|
|
|
|
|
|
|
TestClass(typeof(Dictionary<,>.ValueCollection)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TestMember(string className, string memberName) |
|
|
|
void TestMember(string className, string memberName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
IClass c = mscorlib.GetClassByReflectionName(className, false); |
|
|
|
IClass c = mscorlib.GetClassByReflectionName(className, false); |
|
|
|
|