Skip to content

Commit

Permalink
Adds Unit Testing for MSProject
Browse files Browse the repository at this point in the history
Application.Run() does exist but doesn't seem to work, so using
Application.Macro() instead.
  • Loading branch information
ThunderFrame committed Jun 5, 2016
1 parent bcca242 commit d97aa9c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rubberduck.VBEEditor/Extensions/VbeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public static IHostApplication HostApplication(this VBE vbe)
return new PowerPointApp();
case "Microsoft Outlook":
return new OutlookApp();
case "Microsoft Project":
return new ProjectApp();
case "Microsoft Publisher":
return new PublisherApp();
case "Microsoft Visio":
Expand Down Expand Up @@ -94,6 +96,8 @@ public static IHostApplication HostApplication(this VBE vbe)
return new PowerPointApp();
case "Outlook":
return new OutlookApp();
case "MSProject":
return new ProjectApp();
case "Publisher":
return new PublisherApp();
case "Visio":
Expand Down
6 changes: 6 additions & 0 deletions Rubberduck.VBEEditor/Rubberduck.VBEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\libs\Microsoft.Office.Interop.Excel.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.MSProject, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>..\libs\Microsoft.Office.Interop.MSProject.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Outlook, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
Expand Down Expand Up @@ -114,6 +119,7 @@
</Compile>
<Compile Include="VBEHost\AccessApp.cs" />
<Compile Include="VBEHost\CorelDRAWApp.cs" />
<Compile Include="VBEHost\ProjectApp.cs" />
<Compile Include="VBEHost\ExcelApp.cs" />
<Compile Include="VBEHost\FallbackApp.cs" />
<Compile Include="VBEHost\HostApplicationBase.cs" />
Expand Down
Binary file added libs/Microsoft.Office.Interop.MSProject.dll
Binary file not shown.

0 comments on commit d97aa9c

Please sign in to comment.