Initial MVP

This commit is contained in:
Smaug123
2024-10-02 23:25:20 +01:00
parent 2e6d2ded51
commit 0dad74819e
23 changed files with 1491 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
namespace WoofWare.Whippet.Test
open NUnit.Framework
open WoofWare.Whippet.Core
open ApiSurface
[<TestFixture>]
module TestSurface =
let coreAssembly = typeof<RawSourceGenerationArgs>.Assembly
[<Test>]
let ``Ensure API surface has not been modified`` () = ApiSurface.assertIdentical coreAssembly
(*
[<Test>]
// https://github.com/nunit/nunit3-vs-adapter/issues/876
let CheckVersionAgainstRemote () =
MonotonicVersion.validate assembly "WoofWare.Myriad.Core"
*)
[<Test ; Explicit>]
let ``Update API surface: core`` () =
ApiSurface.writeAssemblyBaseline coreAssembly
[<Test>]
let ``Ensure public API is fully documented: core`` () =
DocCoverage.assertFullyDocumented coreAssembly

View File

@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<Compile Include="TestSurface.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ApiSurface" Version="4.1.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageReference Include="NUnit" Version="4.2.2"/>
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0"/>
<PackageReference Include="FsUnit" Version="6.0.1"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WoofWare.Whippet.Core\WoofWare.Whippet.Core.fsproj" />
</ItemGroup>
</Project>