1- namespace XakeLibTests
1+ module ` `action block allows``
22
33open NUnit.Framework
4-
54open Xake
65
7- [<TestFixture>]
8- type ``action block allows`` () =
96
10- let makeStringList () = new System.Collections.Generic.List< string>()
11- let DebugOptions =
12- { ExecOptions.Default with FailOnError = true ; FileLog = " " }
7+ let makeStringList () = new System.Collections.Generic.List< string>()
8+ let DebugOptions = { ExecOptions.Default with FailOnError = true ; FileLog = " " }
139
14- [<Test>]
15- member __. ``executes the body`` () =
10+ [<Test>]
11+ let ``executes the body`` () =
1612
1713 let wasExecuted = ref false
1814
@@ -24,8 +20,8 @@ type ``action block allows``() =
2420
2521 Assert.IsTrue(! wasExecuted)
2622
27- [<Test>]
28- member __. ``execution is ordered`` () =
23+ [<Test>]
24+ let ``execution is ordered`` () =
2925
3026 let wasExecuted = ref false
3127
@@ -45,8 +41,8 @@ type ``action block allows``() =
4541 Assert.IsTrue(! wasExecuted)
4642 Assert.That( errorlist, Is.EquivalentTo([ " 1" ; " 2" ; " 3" ]))
4743
48- [<Test>]
49- member __. ``allows async operations`` () =
44+ [<Test>]
45+ let ``allows async operations`` () =
5046
5147 let wasExecuted = ref false
5248
@@ -67,8 +63,8 @@ type ``action block allows``() =
6763 Assert.IsTrue(! wasExecuted)
6864 Assert.That( errorlist, Is.EqualTo([ " 1" ; " 2" ; " 3" ; " 4" ]))
6965
70- [<Test>]
71- member __. ``do ! action`` () =
66+ [<Test>]
67+ let ``do ! action`` () =
7268
7369 let wasExecuted = ref false
7470
@@ -92,8 +88,8 @@ type ``action block allows``() =
9288 Assert.That( errorlist, Is.EqualTo([ " 1" ; " 2" ; " 3" ; " 4" ]))
9389
9490
95- [<Test>]
96- member __. ``do ! action with result ignored`` () =
91+ [<Test>]
92+ let ``do ! action with result ignored`` () =
9793
9894 let wasExecuted = ref false
9995
@@ -121,8 +117,8 @@ type ``action block allows``() =
121117 Assert.That( errorlist, Is.EqualTo([ " 1" ; " 2" ; " 3" ; " 4" ] |> List.toArray))
122118
123119
124- [<Test>]
125- member __. ``let! returning value`` () =
120+ [<Test>]
121+ let ``let ! returning value`` () =
126122
127123 let errorlist = makeStringList()
128124 let note = errorlist.Add
@@ -144,8 +140,8 @@ type ``action block allows``() =
144140
145141 Assert.That( errorlist, Is.EqualTo([ " 1" ; " 2+1" ; " 3" ] |> List.toArray))
146142
147- [<Test>]
148- member __. ``if of various kinds`` () =
143+ [<Test>]
144+ let ``if of various kinds`` () =
149145
150146 let errorlist = makeStringList()
151147 let note = errorlist.Add
@@ -176,8 +172,8 @@ type ``action block allows``() =
176172
177173 Assert.That( errorlist, Is.EqualTo([ " i1-t" ; " i2-f" ; " 2" ; " 3" ] |> List.toArray))
178174
179- [<Test>]
180- member __. ``if without else`` () =
175+ [<Test>]
176+ let ``if without else`` () =
181177
182178 let errorlist = makeStringList()
183179 let note = errorlist.Add
@@ -206,8 +202,8 @@ type ``action block allows``() =
206202
207203 Assert.That( errorlist, Is.EqualTo([ " i1-t" ; " 3" ; " 4" ] |> List.toArray))
208204
209- [<Test>]
210- member __. ``for and while`` () =
205+ [<Test>]
206+ let ``for and while`` () =
211207
212208 let errorlist = makeStringList()
213209 let note = errorlist.Add
@@ -235,8 +231,8 @@ type ``action block allows``() =
235231
236232 Assert.That( errorlist, Is.EqualTo([ " 1" ; " i=1" ; " i=2" ; " i=3" ; " j=3" ; " j=4" ; " 4" ] |> List.toArray))
237233
238- [<Test; Explicit>]
239- member __. ``try catch finally`` () =
234+ [<Test; Explicit>]
235+ let ``try catch finally`` () =
240236
241237 let errorlist = makeStringList()
242238 let note = errorlist.Add
0 commit comments