Allow properties in mocked interfaces (#336)

This commit is contained in:
Patrick Stevens
2025-02-12 23:53:15 +00:00
committed by GitHub
parent 129687ec1c
commit 277a186fda
4 changed files with 76 additions and 2 deletions

View File

@@ -48,3 +48,10 @@ type TypeWithInterface =
inherit IDisposable
abstract Mem1 : string option -> string[] Async
abstract Mem2 : unit -> string[] Async
[<GenerateMock>]
type TypeWithProperties =
inherit IDisposable
abstract Mem1 : string option -> string[] Async
abstract Prop1 : int
abstract Prop2 : unit Async