anchor.diff: -﻿// --------------------------------------------------------------------------------------
  -// Test that the documentation is generated correctly withtout F# errors 
  -// --------------------------------------------------------------------------------------
  +﻿#if INTERACTIVE
  +#I "../../packages/FSharp.Formatting.2.2.10-beta/lib/net40"
  +#I "../../packages/RazorEngine.3.4.0/lib/net45/"
  +#r "../../packages/Microsoft.AspNet.Razor.3.0.0/lib/net45/System.Web.Razor.dll"
  +#r "RazorEngine.dll"
  +#r "FSharp.Literate.dll"
  +#r "FSharp.CodeFormat.dll"
  +#r "FSharp.MetadataFormat.dll"
  +#r "../../packages/NUnit.2.6.3/lib/nunit.framework.dll"
  +#load "../Common/FsUnit.fs"
  +#else
   module FSharp.Data.Tests.Documentation
  +#endif
   
   open FsUnit
   open NUnit.Framework
  
positive.code:   if not (Directory.Exists(dir)) then Directory.CreateDirectory(dir) |> ignore
  
    let literateDoc = Literate.ParseScriptFile( Path.Combine(sources, file), fsharpCompiler = compiler )
    literateDoc.Errors |> Seq.filter (fun (SourceError(startl, endl, kind, msg)) ->
      if msg <> "Multiple references to 'mscorlib.dll' are not permitted" then
        printfn "%A %s (%s)" (startl, endl) msg file
        true
      else false) |> Seq.length
  
  // ------------------------------------------------------------------------------------
  // Core API documentation
  
negative.code: 
  let (@@) a b = Path.Combine(a, b)
  
  let sources = __SOURCE_DIRECTORY__ @@ "../../docs/content"
  
  let output = Path.GetTempPath() @@ "FSharp.Data.Docs"
  
  