File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,14 +140,16 @@ let ``Project file parsing -- bad project file``() =
140140 try
141141 ProjectCracker.GetProjectOptionsFromProjectFileLogged( f) |> ignore
142142 failwith " Expected exception"
143- with
144- | e -> Assert.That( e.Message, Contains.Substring " The project file could not be loaded." )
143+ with e ->
144+ Assert.That( e.Message, Contains.Substring " The project file could not be loaded." )
145145
146146[<Test>]
147147let ``Project file parsing -- non - existent project file`` () =
148148 let f = normalizePath (__ SOURCE_ DIRECTORY__ + @" /data/DoesNotExist.fsproj" )
149- let log = snd ( ProjectCracker.GetProjectOptionsFromProjectFileLogged( f, enableLogging= true ))
150- log.[ f] |> should contain " System.IO.FileNotFoundException"
149+ try
150+ ProjectCracker.GetProjectOptionsFromProjectFileLogged( f, enableLogging= true ) |> ignore
151+ with e ->
152+ Assert.That( e.Message, Contains.Substring " Could not find file" )
151153
152154[<Test>]
153155let ``Project file parsing -- output file`` () =
You can’t perform that action at this time.
0 commit comments