We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use
Example:
type TestDir = { Dir : string } interface System.IDisposable with member x.Dispose() = try Directory.Delete(x.Dir, true) with e -> eprintf "Failed to delete '%s': %O" x.Dir e () let createTestDir () = let testFile = Path.Combine (Path.GetTempPath (), Path.GetRandomFileName ()) Directory.CreateDirectory(testFile) |> ignore<DirectoryInfo> { Dir = testFile } [<Tests>] let tests = testList "Tests" [ test "test" { use testDir = createTestDir() // <- FS0001 () } ]
Workaround use testCase "test" <| fun _ -> instead
testCase "test" <| fun _ ->
The text was updated successfully, but these errors were encountered:
Fixes #341
13a5657
0fc4f27
c4b114a
c0f44f7
152962a
@matthid This has been fixed now!
Sorry, something went wrong.
@haf Thanks!
No branches or pull requests
Example:
Workaround use
testCase "test" <| fun _ ->
insteadThe text was updated successfully, but these errors were encountered: