From 0444f9b0e0183f254478fa80f11f3c5dbacd6002 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 21 Aug 2009 16:35:10 +0000 Subject: [PATCH] - XamlBinding: fixed bugs and added Unit Tests - converted NRefactoryDemo.csproj to .NET 4 git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4751 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- samples/NRefactoryDemo/NRefactoryDemo.csproj | 18 ++++++-- samples/NRefactoryDemo/NRefactoryDemo.sln | 6 ++- ...pletionTests.cs => CodeCompletionTests.cs} | 42 +++++++++++++++++++ .../XamlBinding.Tests.csproj | 2 +- .../XamlBinding/CompletionDataHelper.cs | 2 +- .../XamlBinding/XamlCodeCompletionBinding.cs | 13 ++++-- 6 files changed, 71 insertions(+), 12 deletions(-) rename src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/{CtrlSpaceCodeCompletionTests.cs => CodeCompletionTests.cs} (94%) diff --git a/samples/NRefactoryDemo/NRefactoryDemo.csproj b/samples/NRefactoryDemo/NRefactoryDemo.csproj index b628bf969b..0e8ab42646 100644 --- a/samples/NRefactoryDemo/NRefactoryDemo.csproj +++ b/samples/NRefactoryDemo/NRefactoryDemo.csproj @@ -1,4 +1,4 @@ - + WinExe NRefactoryDemo @@ -6,6 +6,8 @@ Debug AnyCPU {63199047-9D5D-474C-B3CC-62ABBB071B67} + C:\Users\Siegfried\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis + v4.0 obj\ @@ -28,14 +30,22 @@ False + + ..\..\bin\ICSharpCode.NRefactory.dll + + + 4.0 + + + 4.0 + - - ..\..\bin\ICSharpCode.NRefactory.dll - False + + 4.0 diff --git a/samples/NRefactoryDemo/NRefactoryDemo.sln b/samples/NRefactoryDemo/NRefactoryDemo.sln index 95bdc80be1..c65e9e6a15 100644 --- a/samples/NRefactoryDemo/NRefactoryDemo.sln +++ b/samples/NRefactoryDemo/NRefactoryDemo.sln @@ -1,5 +1,7 @@ -Microsoft Visual Studio Solution File, Format Version 9.00 -# SharpDevelop 2.1.0.1394 + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +# SharpDevelop 3.1.0.4545 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactoryDemo", "NRefactoryDemo.csproj", "{63199047-9D5D-474C-B3CC-62ABBB071B67}" EndProject Global diff --git a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CtrlSpaceCodeCompletionTests.cs b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CodeCompletionTests.cs similarity index 94% rename from src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CtrlSpaceCodeCompletionTests.cs rename to src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CodeCompletionTests.cs index 68fe5f9890..a9cfe6c5f1 100644 --- a/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CtrlSpaceCodeCompletionTests.cs +++ b/src/AddIns/BackendBindings/XamlBinding/XamlBinding.Tests/CodeCompletionTests.cs @@ -499,6 +499,46 @@ namespace ICSharpCode.XamlBinding.Tests }); } + [Test] + public void CtrlSpaceTest21() + { + string fileHeader = @" + +