mirror of
https://github.com/Smaug123/WoofWare.Whippet
synced 2025-10-06 00:08:39 +00:00
Initial MVP
This commit is contained in:
28
WoofWare.Whippet.Test/TestSurface.fs
Normal file
28
WoofWare.Whippet.Test/TestSurface.fs
Normal 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
|
26
WoofWare.Whippet.Test/WoofWare.Whippet.Test.fsproj
Normal file
26
WoofWare.Whippet.Test/WoofWare.Whippet.Test.fsproj
Normal 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>
|
Reference in New Issue
Block a user