diff --git a/src/SourceBrowser.Generator/DocumentWalkers/VBWalker.cs b/src/SourceBrowser.Generator/DocumentWalkers/VBWalker.cs index 0bdc4a1..59e329e 100644 --- a/src/SourceBrowser.Generator/DocumentWalkers/VBWalker.cs +++ b/src/SourceBrowser.Generator/DocumentWalkers/VBWalker.cs @@ -43,11 +43,11 @@ public override void VisitToken(SyntaxToken token) { tokenModel = ProcessKeyword(token); } - else if (token.VisualBasicKind() == SyntaxKind.IdentifierToken) + else if (token.VBKind() == SyntaxKind.IdentifierToken) { tokenModel = ProcessIdentifier(token); } - else if(token.VisualBasicKind() == SyntaxKind.StringLiteralToken) + else if(token.VBKind() == SyntaxKind.StringLiteralToken) { tokenModel = ProcessStringLiteral(token); } @@ -75,7 +75,7 @@ private ICollection ProcessTrivia(SyntaxTriviaList triviaList) { var triviaModelList = triviaList.Select(n => new Trivia( value: n.ToFullString(), - type: n.VisualBasicKind().ToString() + type: n.VBKind().ToString() )).ToList(); return triviaModelList; @@ -101,7 +101,7 @@ private Token ProcessOtherToken(SyntaxToken token) /// public Token ProcessKeyword(SyntaxToken token) { - string fullName = token.VisualBasicKind().ToString(); + string fullName = token.VBKind().ToString(); string value = token.ToString(); string type = VisualBasicTokenTypes.KEYWORD; int lineNumber = token.GetLocation().GetLineSpan().StartLinePosition.Line + 1; @@ -112,7 +112,7 @@ public Token ProcessKeyword(SyntaxToken token) private Token ProcessStringLiteral(SyntaxToken token) { - string fullName = token.VisualBasicKind().ToString(); + string fullName = token.VBKind().ToString(); string value = token.ToString(); string type = VisualBasicTokenTypes.STRING; int lineNumber = token.GetLocation().GetLineSpan().StartLinePosition.Line + 1; diff --git a/src/SourceBrowser.Generator/SourceBrowser.Generator.csproj b/src/SourceBrowser.Generator/SourceBrowser.Generator.csproj index 3b23cc2..1225dce 100644 --- a/src/SourceBrowser.Generator/SourceBrowser.Generator.csproj +++ b/src/SourceBrowser.Generator/SourceBrowser.Generator.csproj @@ -35,32 +35,50 @@ - - ..\packages\Microsoft.CodeAnalysis.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.dll + + False + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.dll - - ..\packages\Microsoft.CodeAnalysis.CSharp.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.dll + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - - ..\packages\Microsoft.CodeAnalysis.CSharp.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.Desktop.dll + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll - - ..\packages\Microsoft.CodeAnalysis.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.Desktop.dll + + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll + + False + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Desktop.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll + + + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.Desktop.dll False @@ -68,14 +86,15 @@ - + True - ..\packages\Microsoft.Bcl.Immutable.1.1.20-beta\lib\portable-net45+win8\System.Collections.Immutable.dll + ..\packages\System.Collections.Immutable.1.1.32-beta\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll - - ..\packages\Microsoft.Bcl.Metadata.1.0.12-alpha\lib\portable-net45+win8\System.Reflection.Metadata.dll + + False + ..\packages\System.Reflection.Metadata.1.0.17-beta\lib\portable-net45+win8\System.Reflection.Metadata.dll diff --git a/src/SourceBrowser.Generator/packages.config b/src/SourceBrowser.Generator/packages.config index 1906c8d..84ee7aa 100644 --- a/src/SourceBrowser.Generator/packages.config +++ b/src/SourceBrowser.Generator/packages.config @@ -1,13 +1,13 @@  - - - - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/src/SourceBrowser.Samples/SourceBrowser.Samples.csproj b/src/SourceBrowser.Samples/SourceBrowser.Samples.csproj index e0216ef..509b004 100644 --- a/src/SourceBrowser.Samples/SourceBrowser.Samples.csproj +++ b/src/SourceBrowser.Samples/SourceBrowser.Samples.csproj @@ -32,45 +32,77 @@ 4 - + False - ..\packages\Microsoft.CodeAnalysis.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.dll + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.dll - + False - ..\packages\Microsoft.CodeAnalysis.CSharp.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.dll + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.dll - + False - ..\packages\Microsoft.CodeAnalysis.CSharp.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.Desktop.dll + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Desktop.dll - + False - ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll - + + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.Desktop.dll + + False - ..\packages\Microsoft.CodeAnalysis.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.Desktop.dll + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Desktop.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Desktop.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll - + False - ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.Desktop.dll + + True + ..\packages\System.Collections.Immutable.1.1.32-beta\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + - + False - ..\packages\Microsoft.Bcl.Metadata.1.0.12-alpha\lib\portable-net45+win8\System.Reflection.Metadata.dll + ..\packages\System.Reflection.Metadata.1.0.17-beta\lib\portable-net45+win8\System.Reflection.Metadata.dll diff --git a/src/SourceBrowser.Samples/packages.config b/src/SourceBrowser.Samples/packages.config index c7a919c..8364729 100644 --- a/src/SourceBrowser.Samples/packages.config +++ b/src/SourceBrowser.Samples/packages.config @@ -1,12 +1,13 @@  - - - - - - - - - + + + + + + + + + + \ No newline at end of file diff --git a/src/SourceBrowser.Site/SourceBrowser.Site.csproj b/src/SourceBrowser.Site/SourceBrowser.Site.csproj index d00f902..5910d57 100644 --- a/src/SourceBrowser.Site/SourceBrowser.Site.csproj +++ b/src/SourceBrowser.Site/SourceBrowser.Site.csproj @@ -56,8 +56,9 @@ ..\packages\Microsoft.AspNet.Identity.Owin.2.1.0\lib\net45\Microsoft.AspNet.Identity.Owin.dll - - ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.0.7.4091001-beta\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll @@ -65,6 +66,21 @@ ..\packages\Newtonsoft.Json.6.0.6\lib\net45\Newtonsoft.Json.dll + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + diff --git a/src/SourceBrowser.Site/packages.config b/src/SourceBrowser.Site/packages.config index ee41ca5..96993a3 100644 --- a/src/SourceBrowser.Site/packages.config +++ b/src/SourceBrowser.Site/packages.config @@ -15,6 +15,7 @@ + diff --git a/src/SourceBrowser.Tests/CSharpTests.cs b/src/SourceBrowser.Tests/CSharpTests.cs new file mode 100644 index 0000000..039ed0f --- /dev/null +++ b/src/SourceBrowser.Tests/CSharpTests.cs @@ -0,0 +1,167 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Microsoft.CodeAnalysis.UnitTests; +using Microsoft.CodeAnalysis.UnitTests.SolutionGeneration; +using Microsoft.CodeAnalysis; +using System.Linq; +using SourceBrowser.Generator.Model; +using SourceBrowser.Generator; +using SourceBrowser.Generator.Model.CSharp; + +namespace SourceBrowser.Tests +{ + [TestClass] + public class CSharpTests : MSBuildWorkspaceTestBase + { + [TestMethod] + public void SanityCheck() + { + //Set up the absolute minimum + var solution = base.Solution( + Project( + ProjectName("Project1"), + Sign, + Document( + @" + class C1 + { + public void M1 () { } + }"))); + + WorkspaceModel ws = new WorkspaceModel("Workspace1", ""); + FolderModel fm = new FolderModel(ws, "Project1"); + + var document = solution.Projects.SelectMany(n => n.Documents).Where(n => n.Name == "Document1.cs").Single(); + var linkProvider = new ReferencesourceLinkProvider(); + + var walker = new SourceBrowser.Generator.DocumentWalkers.CSWalker(fm, document, linkProvider); + walker.Visit(document.GetSyntaxRootAsync().Result); + var documentModel = walker.GetDocumentModel(); + + //Make sure there's 12 tokens + Assert.IsTrue(documentModel.Tokens.Count == 12); + + //Make sure they're classified correctly + Assert.IsTrue(documentModel.Tokens.Count(n => n.Type == CSharpTokenTypes.KEYWORD) == 3); + Assert.IsTrue(documentModel.Tokens.Count(n => n.Type == CSharpTokenTypes.TYPE) == 1); + Assert.IsTrue(documentModel.Tokens.Count(n => n.Type == CSharpTokenTypes.IDENTIFIER) == 1); + Assert.IsTrue(documentModel.Tokens.Count(n => n.Type == CSharpTokenTypes.OTHER) == 7); + } + + [TestMethod] + public void BasicLinking() + { + var solution = base.Solution( + Project( + ProjectName("Project1"), + Sign, + Document( + @" + class C1 + { + public void Method1() + { + Method2(); + } + public void Method2() + { + Method1(); + } + }"))); + + WorkspaceModel ws = new WorkspaceModel("Workspace1", ""); + FolderModel fm = new FolderModel(ws, "Project1"); + + var document = solution.Projects.SelectMany(n => n.Documents).Where(n => n.Name == "Document1.cs").Single(); + var linkProvider = new ReferencesourceLinkProvider(); + + var walker = new SourceBrowser.Generator.DocumentWalkers.CSWalker(fm, document, linkProvider); + walker.Visit(document.GetSyntaxRootAsync().Result); + var documentModel = walker.GetDocumentModel(); + + //Make sure there's two links + var links = documentModel.Tokens.Select(n => n.Link).Where(n => n != null); + Assert.IsTrue(links.Count() == 2); + + //Make sure they're both symbol links + Assert.IsTrue(links.First() is SymbolLink); + Assert.IsTrue(links.Last() is SymbolLink); + + //Make sure they link correctly + Assert.IsTrue(((SymbolLink)links.First()).ReferencedSymbolName == "C1.Method2()"); + Assert.IsTrue(((SymbolLink)links.Last()).ReferencedSymbolName == "C1.Method1()"); + } + + [TestMethod] + public void TestParameters() + { + var solution = base.Solution( + Project( + ProjectName("Project1"), + Sign, + Document( + @" + class C1 + { + public void M1(string p1, int p2, C1 p3) + { + p1 = String.Empty; + p2 = 0; + p3 = null; + } + }"))); + + WorkspaceModel ws = new WorkspaceModel("Workspace1", ""); + FolderModel fm = new FolderModel(ws, "Project1"); + + var document = solution.Projects.SelectMany(n => n.Documents).Where(n => n.Name == "Document1.cs").Single(); + var linkProvider = new ReferencesourceLinkProvider(); + + var walker = new SourceBrowser.Generator.DocumentWalkers.CSWalker(fm, document, linkProvider); + walker.Visit(document.GetSyntaxRootAsync().Result); + var documentModel = walker.GetDocumentModel(); + + var links = documentModel.Tokens.Select(n => n.Link).Where(n => n != null); + + //TODO: Test Parameters once PR #66 is merged. + + } + + public void TestLocals() + { + + var solution = base.Solution( + Project( + ProjectName("Project1"), + Sign, + Document( + @" + class C1 + { + public void M1() + { + string p1 = String.Empty; + int p2 = 0; + + p2 = p2 + 1; + p1 = p1 + ""sample text"" + } + }"))); + + WorkspaceModel ws = new WorkspaceModel("Workspace1", ""); + FolderModel fm = new FolderModel(ws, "Project1"); + + var document = solution.Projects.SelectMany(n => n.Documents).Where(n => n.Name == "Document1.cs").Single(); + var linkProvider = new ReferencesourceLinkProvider(); + + var walker = new SourceBrowser.Generator.DocumentWalkers.CSWalker(fm, document, linkProvider); + walker.Visit(document.GetSyntaxRootAsync().Result); + var documentModel = walker.GetDocumentModel(); + + var links = documentModel.Tokens.Select(n => n.Link).Where(n => n != null); + + //TODO: Test locals once PR #66 is merged. + + } + } +} diff --git a/src/SourceBrowser.Tests/Properties/AssemblyInfo.cs b/src/SourceBrowser.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..685a98c --- /dev/null +++ b/src/SourceBrowser.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("SourceBrowser.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SourceBrowser.Tests")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ea8f0b24-b238-4a04-9a54-8ab12bdb5e88")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/SourceBrowser.Tests/SourceBrowser.Tests.csproj b/src/SourceBrowser.Tests/SourceBrowser.Tests.csproj new file mode 100644 index 0000000..daef377 --- /dev/null +++ b/src/SourceBrowser.Tests/SourceBrowser.Tests.csproj @@ -0,0 +1,170 @@ + + + + Debug + AnyCPU + {EA8F0B24-B238-4A04-9A54-8AB12BDB5E88} + Library + Properties + SourceBrowser.Tests + SourceBrowser.Tests + v4.5 + 512 + {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages + False + UnitTest + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.dll + + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.dll + + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll + + + False + ..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.dll + + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll + + + False + ..\packages\Microsoft.CodeAnalysis.VisualBasic.Workspaces.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.VisualBasic.Workspaces.Desktop.dll + + + False + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll + + + False + ..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0-beta1-20141031-01\lib\net45\Microsoft.CodeAnalysis.Workspaces.Desktop.dll + + + ..\lib\Roslyn.Services.UnitTests.dll + + + ..\lib\Roslyn.Test.Utilities.dll + + + + True + ..\packages\System.Collections.Immutable.1.1.32-beta\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + + + ..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + + + False + ..\packages\System.Reflection.Metadata.1.0.17-beta\lib\portable-net45+win8\System.Reflection.Metadata.dll + + + + + + + + + + + + + + + + + + + + + + + + + {c91050bd-5010-4ebd-a6ae-52cca7c2553d} + SourceBrowser.Generator + + + + + + + False + + + False + + + False + + + False + + + + + + + + \ No newline at end of file diff --git a/src/SourceBrowser.Tests/app.config b/src/SourceBrowser.Tests/app.config new file mode 100644 index 0000000..38cf066 --- /dev/null +++ b/src/SourceBrowser.Tests/app.config @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/SourceBrowser.Tests/packages.config b/src/SourceBrowser.Tests/packages.config new file mode 100644 index 0000000..8364729 --- /dev/null +++ b/src/SourceBrowser.Tests/packages.config @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/SourceBrowser.sln b/src/SourceBrowser.sln index 5cfff85..b7c8f34 100644 --- a/src/SourceBrowser.sln +++ b/src/SourceBrowser.sln @@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceBrowser.SolutionRetri EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceBrowser.Search", "SourceBrowser.Search\SourceBrowser.Search.csproj", "{6C2ED4C0-E609-47D8-AA05-1CACBE5252AC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SourceBrowser.Tests", "SourceBrowser.Tests\SourceBrowser.Tests.csproj", "{EA8F0B24-B238-4A04-9A54-8AB12BDB5E88}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,6 +41,10 @@ Global {6C2ED4C0-E609-47D8-AA05-1CACBE5252AC}.Debug|Any CPU.Build.0 = Debug|Any CPU {6C2ED4C0-E609-47D8-AA05-1CACBE5252AC}.Release|Any CPU.ActiveCfg = Release|Any CPU {6C2ED4C0-E609-47D8-AA05-1CACBE5252AC}.Release|Any CPU.Build.0 = Release|Any CPU + {EA8F0B24-B238-4A04-9A54-8AB12BDB5E88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EA8F0B24-B238-4A04-9A54-8AB12BDB5E88}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EA8F0B24-B238-4A04-9A54-8AB12BDB5E88}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EA8F0B24-B238-4A04-9A54-8AB12BDB5E88}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/lib/Roslyn.Services.UnitTests.dll b/src/lib/Roslyn.Services.UnitTests.dll new file mode 100644 index 0000000..8e3e716 Binary files /dev/null and b/src/lib/Roslyn.Services.UnitTests.dll differ diff --git a/src/lib/Roslyn.Test.Utilities.dll b/src/lib/Roslyn.Test.Utilities.dll new file mode 100644 index 0000000..3db5531 Binary files /dev/null and b/src/lib/Roslyn.Test.Utilities.dll differ