We are using the wonderful FSUnit for our unit testing. This works fine, except the bodies of our tests insist on using full F# syntax (with 'in' at the end of each line etc.) instead of #light syntax. For example:
module MyTests
open System
open NUnit.Framework
open FsUnit
open MyModule
[<TestFixture>]
type ``Given a valid file`` () =
let myFile = createSomeFile()
[<Test>] member x.
``Processing the file succeeds`` () =
let actual = processFile myFile in
actual |> should be True
Note the 'in' at the end of the first line of the test. Without that, the test won't compile - which is fine for short tests but is becoming a pain for longer test methods. We've tried adding an explicit #light in the source but that seems to make no difference. This is part of a large project with many modules, all of which - other than the test modules - are happily using light syntax (without any explicit #light). What's triggering full syntax in the test modules?