diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Resolver/UnaryOperatorTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/Resolver/UnaryOperatorTests.cs index a98c4d2abc..f862858ede 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/Resolver/UnaryOperatorTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/Resolver/UnaryOperatorTests.cs @@ -11,7 +11,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver using dynamic = ICSharpCode.NRefactory.TypeSystem.ReflectionHelper.Dynamic; [TestFixture] - public class UnaryOperatorTests : ResolverTestBase + public unsafe class UnaryOperatorTests : ResolverTestBase { [Test] public void TestAddressOf() diff --git a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj index 7d702c736a..87dbf81479 100644 --- a/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj +++ b/ICSharpCode.NRefactory.Tests/ICSharpCode.NRefactory.Tests.csproj @@ -1,4 +1,4 @@ - + {63D3B27A-D966-4902-90B3-30290E1692F1} @@ -9,6 +9,8 @@ ICSharpCode.NRefactory.Tests v4.0 Properties + 10.0.0 + 2.0 x86 @@ -29,19 +31,29 @@ False TRACE + + true + full + false + 4 + true + true + + + none + true + 4 + true + - - ..\lib\nunit.framework.dll - - 3.5 - 3.5 + @@ -75,10 +87,8 @@ - - - - + + \ No newline at end of file diff --git a/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs b/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs index 2ad18d2c2d..610f04b560 100644 --- a/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs +++ b/ICSharpCode.NRefactory.Tests/TypeSystem/CecilLoaderTests.cs @@ -59,7 +59,7 @@ namespace ICSharpCode.NRefactory.TypeSystem ITypeDefinition c = Mscorlib.GetClass(typeof(IntPtr)); IMethod toPointer = c.Methods.Single(p => p.Name == "ToPointer"); Assert.AreEqual("System.Void*", toPointer.ReturnType.Resolve(ctx).ReflectionName); - Assert.IsInstanceOf(typeof(PointerType), toPointer.ReturnType.Resolve(ctx)); + Assert.IsTrue (toPointer.ReturnType.Resolve(ctx) is PointerType); Assert.AreEqual("System.Void", ((PointerType)toPointer.ReturnType.Resolve(ctx)).ElementType.FullName); } diff --git a/ICSharpCode.NRefactory.Tests/TypeSystem/ReflectionHelperTests.cs b/ICSharpCode.NRefactory.Tests/TypeSystem/ReflectionHelperTests.cs index 182137017a..64662a999e 100644 --- a/ICSharpCode.NRefactory.Tests/TypeSystem/ReflectionHelperTests.cs +++ b/ICSharpCode.NRefactory.Tests/TypeSystem/ReflectionHelperTests.cs @@ -10,14 +10,14 @@ using NUnit.Framework; namespace ICSharpCode.NRefactory.TypeSystem { [TestFixture] - public class ReflectionHelperTests + public unsafe class ReflectionHelperTests { ITypeResolveContext context = CecilLoaderTests.Mscorlib; void TestGetClass(Type type) { ITypeDefinition t = CecilLoaderTests.Mscorlib.GetClass(type); - Assert.NotNull(t, type.FullName); + Assert.IsNotNull(t, type.FullName); Assert.AreEqual(type.FullName, t.ReflectionName); } diff --git a/ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.TestCase.cs b/ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.TestCase.cs index f5e1b94f88..bf7a5adfe1 100644 --- a/ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.TestCase.cs +++ b/ICSharpCode.NRefactory.Tests/TypeSystem/TypeSystemTests.TestCase.cs @@ -19,7 +19,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.TestCase public TypeTestAttribute(int a1, Type a2, Type a3) {} } - public class DynamicTest + public unsafe class DynamicTest { public dynamic SimpleProperty { get; set; } diff --git a/NRefactory.sln b/NRefactory.sln index eb6a0abaec..95da826518 100644 --- a/NRefactory.sln +++ b/NRefactory.sln @@ -1,7 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 -# SharpDevelop 4.0.0.6745 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DC98210E-1646-483B-819A-2BB8272461E4}" ProjectSection(SolutionItems) = postProject README = README @@ -18,13 +17,18 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|Any CPU.Build.0 = Debug|Any CPU {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|Any CPU.Build.0 = Release|Any CPU + {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Debug|Any CPU.Build.0 = Debug|Any CPU {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|Any CPU.ActiveCfg = Release|Any CPU - {63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3B2A5653-EC97-4001-BB9B-D90F1AF2C371}.Release|Any CPU.Build.0 = Release|Any CPU {63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {63D3B27A-D966-4902-90B3-30290E1692F1}.Release|Any CPU.Build.0 = Release|Any CPU + {63D3B27A-D966-4902-90B3-30290E1692F1}.Debug|Any CPU.Build.0 = Debug|Any CPU {63D3B27A-D966-4902-90B3-30290E1692F1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {63D3B27A-D966-4902-90B3-30290E1692F1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = ICSharpCode.NRefactory\ICSharpCode.NRefactory.csproj EndGlobalSection EndGlobal