Skip to content

Commit

Permalink
Merge pull request nissl-lab#101 from jsakamoto/improve/unittest/bunl…
Browse files Browse the repository at this point in the history
…e_nunit_test_adapter

Bundle NUnit Test Adapter into projects via NuGet.
  • Loading branch information
tonyqus authored Feb 7, 2017
2 parents d8f7600 + 75c06ac commit 688b996
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Lib/

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/
packages/

# MSTest test Results
[Tt]est[Rr]esult*/
Expand Down
17 changes: 17 additions & 0 deletions testcases/main/NPOI.TestCases.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,25 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\solution\Lib\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="nunit.core, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.core.interfaces, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\solution\Lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="nunit.util, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.util.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NUnit.VisualStudio.TestAdapter, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4cb40d35494691ac, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\NUnit.VisualStudio.TestAdapter.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -324,6 +340,7 @@
<SubType>Designer</SubType>
</None>
<None Include="npoi.snk" />
<None Include="packages.config" />
<None Include="POIFS\Data\excel_with_embeded.xls" />
<None Include="POIFS\Data\ppt_with_embeded.ppt" />
<None Include="POIFS\Data\ShortLastBlock.qwp" />
Expand Down
4 changes: 2 additions & 2 deletions testcases/main/SS/UserModel/BaseTestConditionalFormatting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -668,13 +668,13 @@ public void TestCreatePatternFormatting()
Assert.AreEqual(HSSFColor.Blue.Index, patternFmt.FillForegroundColor);

Assert.AreEqual((short)FillPattern.NoFill, patternFmt.FillPattern);
patternFmt.FillPattern = (short)FillPattern.SolidForeground;
patternFmt.FillPattern = FillPattern.SolidForeground;
Assert.AreEqual((short)FillPattern.SolidForeground, patternFmt.FillPattern);
patternFmt.FillPattern = (short)FillPattern.NoFill;
Assert.AreEqual((short)FillPattern.NoFill, patternFmt.FillPattern);
if (this._testDataProvider.GetSpreadsheetVersion() == SpreadsheetVersion.EXCEL97)
{
patternFmt.FillPattern = (short)FillPattern.Bricks;
patternFmt.FillPattern = FillPattern.Bricks;
Assert.AreEqual((short)FillPattern.Bricks, patternFmt.FillPattern);
}

Expand Down
4 changes: 4 additions & 0 deletions testcases/main/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net40" />
</packages>
17 changes: 17 additions & 0 deletions testcases/ooxml/NPOI.OOXML.TestCases.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,26 @@
<HintPath>..\..\solution\Lib\Release.net4\ICSharpCode.SharpZipLib.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="nunit.core, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.core.interfaces, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\solution\Lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="nunit.util, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.util.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NUnit.VisualStudio.TestAdapter, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4cb40d35494691ac, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\NUnit.VisualStudio.TestAdapter.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core">
Expand Down Expand Up @@ -228,6 +244,7 @@
<None Include="App.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down
4 changes: 4 additions & 0 deletions testcases/ooxml/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net40" />
</packages>
17 changes: 17 additions & 0 deletions testcases/openxml4net/NPOI.OOXML4Net.Testcases.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,26 @@
<Reference Include="ICSharpCode.SharpZipLib">
<HintPath>..\..\solution\Lib\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
<Reference Include="nunit.core, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.core.interfaces, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.core.interfaces.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="nunit.framework, Version=2.6.0.12051, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\solution\Lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="nunit.util, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\nunit.util.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NUnit.VisualStudio.TestAdapter, Version=2.0.0.0, Culture=neutral, PublicKeyToken=4cb40d35494691ac, processorArchitecture=MSIL">
<HintPath>..\..\solution\visualstudio\packages\NUnitTestAdapter.2.0.0\lib\NUnit.VisualStudio.TestAdapter.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Web" />
Expand All @@ -104,6 +120,7 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
Expand Down
4 changes: 4 additions & 0 deletions testcases/openxml4net/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnitTestAdapter" version="2.0.0" targetFramework="net40" />
</packages>

0 comments on commit 688b996

Please sign in to comment.