Skip to content

Commit

Permalink
(#63) Shared: add new assembly to ApiTest, update the API definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jan 24, 2023
1 parent 434da60 commit 024f20e
Show file tree
Hide file tree
Showing 6 changed files with 1,137 additions and 433 deletions.
9 changes: 8 additions & 1 deletion src/WpfMath.ApiTest/ApiDefinitionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ static ApiDefinitionTests()
[Theory]
[InlineData("WpfMath.net452.cs")]
[InlineData("WpfMath.netcoreapp3.1.cs")]
public Task WpfMath(string fileName)
public Task WpfMath(string fileName) => DoTest(fileName);

[Theory]
[InlineData("WpfMath.Shared.net452.cs")]
[InlineData("WpfMath.Shared.netcoreapp3.1.cs")]
public Task WpfMathShared(string fileName) => DoTest(fileName);

private static Task DoTest(string fileName)
{
var directory = GetProjectDirectory();
var goldFile = Path.Combine(directory, "api", fileName);
Expand Down
2 changes: 2 additions & 0 deletions src/WpfMath.ApiTest/WpfMath.ApiTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
<ItemGroup>
<_InputAssembly Include="../WpfMath/bin/$(Configuration)/net452/WpfMath.dll" Framework="net452" />
<_InputAssembly Include="../WpfMath/bin/$(Configuration)/netcoreapp3.1/WpfMath.dll" Framework="netcoreapp3.1" />
<_InputAssembly Include="../WpfMath.Shared/bin/$(Configuration)/net452/WpfMath.Shared.dll" Framework="net452" />
<_InputAssembly Include="../WpfMath.Shared/bin/$(Configuration)/netcoreapp3.1/WpfMath.Shared.dll" Framework="netcoreapp3.1" />
</ItemGroup>

<Target Name="_GenerateApiListing" AfterTargets="CoreBuild" Inputs="@(_InputAssembly->'%(FullPath)')" Outputs="$(MSBuildProjectDirectory)/api/%(_InputAssembly.FileName).%(_InputAssembly.Framework).tmp.cs">
Expand Down
Loading

0 comments on commit 024f20e

Please sign in to comment.