diff --git a/ConsumePlugin/GeneratedMock.fs b/ConsumePlugin/GeneratedMock.fs index af0142c..26cab07 100644 --- a/ConsumePlugin/GeneratedMock.fs +++ b/ConsumePlugin/GeneratedMock.fs @@ -15,6 +15,7 @@ type internal PublicTypeMock = Mem3 : int * option -> string } + /// An implementation where every method throws. static member Empty : PublicTypeMock = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -38,6 +39,7 @@ type public PublicTypeInternalFalseMock = Mem3 : int * option -> string } + /// An implementation where every method throws. static member Empty : PublicTypeInternalFalseMock = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -60,6 +62,7 @@ type internal InternalTypeMock = Mem2 : string -> int } + /// An implementation where every method throws. static member Empty : InternalTypeMock = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -80,6 +83,7 @@ type private PrivateTypeMock = Mem2 : string -> int } + /// An implementation where every method throws. static member Empty : PrivateTypeMock = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -100,6 +104,7 @@ type private PrivateTypeInternalFalseMock = Mem2 : string -> int } + /// An implementation where every method throws. static member Empty : PrivateTypeInternalFalseMock = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -119,6 +124,7 @@ type internal VeryPublicTypeMock<'a, 'b> = Mem1 : 'a -> 'b } + /// An implementation where every method throws. static member Empty () : VeryPublicTypeMock<'a, 'b> = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) @@ -141,6 +147,7 @@ type internal CurriedMock<'a> = Mem6 : int * string -> 'a * int -> string } + /// An implementation where every method throws. static member Empty () : CurriedMock<'a> = { Mem1 = (fun x -> raise (System.NotImplementedException "Unimplemented mock function")) diff --git a/WoofWare.Myriad.Plugins/InterfaceMockGenerator.fs b/WoofWare.Myriad.Plugins/InterfaceMockGenerator.fs index 20d620b..a8aaf39 100644 --- a/WoofWare.Myriad.Plugins/InterfaceMockGenerator.fs +++ b/WoofWare.Myriad.Plugins/InterfaceMockGenerator.fs @@ -98,7 +98,7 @@ module internal InterfaceMockGenerator = false, false, [], - PreXmlDoc.Empty, + PreXmlDoc.Create " An implementation where every method throws.", SynValData.SynValData (Some synValData, SynValInfo.Empty, None), constructorIdent, Some constructorReturnType,