@@ -31,28 +31,31 @@ type StackOptionTests () =
3131 member _. ``tryExactlyOne returns an option`` () =
3232 let found : int option = Stack.tryExactlyOne ( Stack.singleton 5 )
3333
34- OverrideAssert.optionMatches
35- ( FSharp.Collections.Immutable.Stack.tryExactlyOne ( Stack.singleton 5 ))
36- found
34+ OverrideAssert.OptionMatches (
35+ FSharp.Collections.Immutable.Stack.tryExactlyOne ( Stack.singleton 5 ),
36+ found,
3737 " Option.Stack.tryExactlyOne must match the default after conversion"
38+ )
3839
3940 [<TestMethod>]
4041 member _. ``tryHead returns an option`` () =
4142 let found : int option = Stack.tryHead several
4243
43- OverrideAssert.optionMatches
44- ( FSharp.Collections.Immutable.Stack.tryHead several)
45- found
44+ OverrideAssert.OptionMatches (
45+ FSharp.Collections.Immutable.Stack.tryHead several,
46+ found,
4647 " Option.Stack.tryHead must match the default"
48+ )
4749
4850 [<TestMethod>]
4951 member _. ``tryLast returns an option`` () =
5052 let found : int option = Stack.tryLast several
5153
52- OverrideAssert.optionMatches
53- ( FSharp.Collections.Immutable.Stack.tryLast several)
54- found
54+ OverrideAssert.OptionMatches (
55+ FSharp.Collections.Immutable.Stack.tryLast several,
56+ found,
5557 " Option.Stack.tryLast must match the default"
58+ )
5659
5760 [<TestMethod>]
5861 member _. ``tryTail returns an option`` () =
@@ -108,50 +111,55 @@ type StackOptionTests () =
108111
109112 [<TestMethod>]
110113 member _. ``pick throws as List.pick does`` () =
111- ExceptionAssert.same
112- StackOps.paramName
114+ ExceptionAssert.Same (
115+ StackOps.paramName,
113116 ( fun () ->
114117 List.pick ( fun _ -> None) ( List.ofArray Inputs.Several)
115118 |> ignore
116- )
117- ( fun () -> Stack.pick ( fun _ -> None) several |> ignore)
119+ ),
120+ ( fun () -> Stack.pick ( fun _ -> None) several |> ignore),
118121 " Option.Stack.pick without a choice must throw as List.pick does"
122+ )
119123
120124 [<TestMethod>]
121125 member _. ``tryFind returns an option`` () =
122126 let found : int option = Stack.tryFind ( fun item -> item > 6 ) several
123127
124- OverrideAssert.optionMatches
125- ( FSharp.Collections.Immutable.Stack.tryFind ( fun item -> item > 6 ) several)
126- found
128+ OverrideAssert.OptionMatches (
129+ FSharp.Collections.Immutable.Stack.tryFind ( fun item -> item > 6 ) several,
130+ found,
127131 " Option.Stack.tryFind must match the default"
132+ )
128133
129134 [<TestMethod>]
130135 member _. ``tryFindBack returns an option`` () =
131136 let found : int option = Stack.tryFindBack ( fun item -> item > 6 ) several
132137
133- OverrideAssert.optionMatches
134- ( FSharp.Collections.Immutable.Stack.tryFindBack ( fun item -> item > 6 ) several)
135- found
138+ OverrideAssert.OptionMatches (
139+ FSharp.Collections.Immutable.Stack.tryFindBack ( fun item -> item > 6 ) several,
140+ found,
136141 " Option.Stack.tryFindBack must match the default"
142+ )
137143
138144 [<TestMethod>]
139145 member _. ``tryFindIndex returns an option`` () =
140146 let found : int option = Stack.tryFindIndex ( fun item -> item > 6 ) several
141147
142- OverrideAssert.optionMatches
143- ( FSharp.Collections.Immutable.Stack.tryFindIndex ( fun item -> item > 6 ) several)
144- found
148+ OverrideAssert.OptionMatches (
149+ FSharp.Collections.Immutable.Stack.tryFindIndex ( fun item -> item > 6 ) several,
150+ found,
145151 " Option.Stack.tryFindIndex must match the default"
152+ )
146153
147154 [<TestMethod>]
148155 member _. ``tryFindIndexBack returns an option`` () =
149156 let found : int option = Stack.tryFindIndexBack ( fun item -> item > 6 ) several
150157
151- OverrideAssert.optionMatches
152- ( FSharp.Collections.Immutable.Stack.tryFindIndexBack ( fun item -> item > 6 ) several)
153- found
158+ OverrideAssert.OptionMatches (
159+ FSharp.Collections.Immutable.Stack.tryFindIndexBack ( fun item -> item > 6 ) several,
160+ found,
154161 " Option.Stack.tryFindIndexBack must match the default"
162+ )
155163
156164 [<TestMethod>]
157165 member _. ``tryPick takes a chooser of options and returns an option`` () =
0 commit comments