Skip to content

Commit

Permalink
fix test reversal
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudRoutine committed Mar 22, 2017
1 parent 975b6b9 commit 26c7782
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/FSharp.MetadataFormat.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ let getOutputDir() =
File.Delete(tempFile)
Directory.CreateDirectory(tempFile).FullName

let removeWhiteSpace (str:string) =
str.Replace("\n", "").Replace("\r", "").Replace(" ", "")


let layoutRoots =
[ root </> "../../misc/templates"
root </> "../../misc/templates/reference" ]
Expand Down Expand Up @@ -73,8 +77,6 @@ let ``MetadataFormat works on sample FAKE assembly``() =
let files = Directory.GetFiles(output)
files |> Seq.length |> shouldEqual 166

let removeWhiteSpace (str:string) =
str.Replace("\n", "").Replace("\r", "").Replace(" ", "")

[<Test>]
let ``MetadataFormat works on two sample F# assemblies``() =
Expand Down Expand Up @@ -116,7 +118,7 @@ let ``MetadataFormat works on two sample F# assemblies``() =
// Check that properties are correctly generated (#114)
files.["fslib-class.html"] |> removeWhiteSpace |> shouldNotContainText ">Member(arg1)<"
files.["fslib-class.html"] |> removeWhiteSpace |> shouldNotContainText ">Member()<"
files.["fslib-class.html"] |> removeWhiteSpace |> shouldNotContainText ">Member<"
files.["fslib-class.html"] |> removeWhiteSpace |> shouldContainText ">Member<"
files.["fslib-class.html"] |> shouldNotContainText "<strong>Signature:</strong> unit -&gt; int"
files.["fslib-class.html"] |> should contain "<strong>Signature:</strong> int"

Expand Down

0 comments on commit 26c7782

Please sign in to comment.