-
-
Notifications
You must be signed in to change notification settings - Fork 150
/
Tests.fs
40 lines (35 loc) · 1006 Bytes
/
Tests.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module Tests
// begin-snippet: SampleTestExpecto
open Expecto
open VerifyTests
open VerifyExpecto
[<Tests>]
let tests =
testTask "findPerson" {
let person = ClassBeingTested.FindPerson()
do! Verifier.Verify("findPerson", person).ToTask()
}
// end-snippet
// begin-snippet: UniqueForSampleExpecto
[<Tests>]
let uniqueTests =
testTask "unique" {
let settings = VerifySettings()
settings.UniqueForRuntime()
do! Verifier.Verify("unique", "value", settings).ToTask()
}
// end-snippet
[<Tests>]
let typeNameTests =
testTask "typeNameTests" {
let settings = VerifySettings()
settings.UseTypeName("CustomTypeName")
do! Verifier.Verify("typeNameTests", "Value", settings).ToTask()
}
[<Tests>]
let methodNameTests =
testTask "methodNameTests" {
let settings = VerifySettings()
settings.UseMethodName("CustomMethodName")
do! Verifier.Verify("methodNameTests", "Value", settings).ToTask()
}