File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
tests/FsToolkit.ErrorHandling.Tests Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11module Expecto
22
33open Expecto
4- open FsToolkit.ErrorHandling
54open System
65open System.Threading .Tasks
76
@@ -33,8 +32,6 @@ let ftestCaseTask name test =
3332 |> Async.AwaitTask
3433 })
3534
36- #endif
37-
3835module Expect =
3936 open Expecto
4037
@@ -53,22 +50,22 @@ module Expect =
5350
5451 match thrown with
5552 | Choice1Of2 e when not ( typeof< 'texn>. IsAssignableFrom( e.GetType())) ->
56- failtestf
53+ Tests. failtestf
5754 " %s . Expected f to throw an exn of type %s , but one of type %s was thrown."
5855 message
5956 ( typeof< 'texn>. FullName)
6057 ( e.GetType() .FullName)
6158 | Choice1Of2 _ -> ()
62- | Choice2Of2 result -> failtestf " %s . Expected f to throw. returned %A " message result
59+ | Choice2Of2 result -> Tests. failtestf " %s . Expected f to throw. returned %A " message result
6360 }
6461
6562type Expect =
6663
6764 static member CancellationRequested ( operation : Async < 'a >) =
6865 Expect.throwsTAsync< 'a, OperationCanceledException> ( operation) " Should have been cancelled"
6966
70- #if ! FABLE_ COMPILER
7167 static member CancellationRequested ( operation : Task < _ >) =
7268 Expect.CancellationRequested( Async.AwaitTask operation)
7369 |> Async.StartImmediateAsTask
74- #endif
70+
71+ #endif
Original file line number Diff line number Diff line change 99 </ProjectReference >
1010 </ItemGroup >
1111 <ItemGroup >
12+ <Compile Include =" Expect.fs" />
1213 <Compile Include =" Expecto.fs" />
1314 <Compile Include =" TestHelpers.fs" />
1415 <Compile Include =" SampleDomain.fs" />
1516 <Compile Include =" TestData.fs" />
16- <Compile Include =" Expect.fs" />
1717 <Compile Include =" BackgroundTaskOptionCE.fs" Condition =" '$(FABLE_COMPILER)' != 'true'" />
1818 <Compile Include =" BackgroundTaskResultCE.fs" Condition =" '$(FABLE_COMPILER)' != 'true'" />
1919 <Compile Include =" TaskOption.fs" Condition =" '$(FABLE_COMPILER)' != 'true'" />
You can’t perform that action at this time.
0 commit comments