anchor.diff:      #
   
       let _ = DateTime.Now
  -"""+"""
  +
  +[<Test>]
  +let ``external symbol in a double nested module, no other open declarations are present``() =
  +    """
  +module TopLevel
  +
  +module Nested =
  +    module DoubleNested =
  +        let _ = DateTime.Now
  +"""
  +    |> forLine 5
  +    |> andEntity "System.DateTime"
  +    |> ns "TopLevel.Nested.DoubleNested"
  +    |> position """
  +module TopLevel
  +
  +module Nested =
  +    module DoubleNested =
  +        #
  +        let _ = DateTime.Now
  +"""
  +
  +[<Test>]
  +let ``external symbol in a double nested module, other open declarations on all levels are present``() =
  +    """
  +module TopLevel
  +
  +open Another
  +
  +module Nested =
  +    open OneMore
  +
  +    module DoubleNested =
  +        open OneMore1
  +
  +        let _ = DateTime.Now
  +"""
  +    |> forLine 11
  +    |> andEntity "System.DateTime"
  +    |> ns "TopLevel.Nested.DoubleNested"
  +    |> position """
  +module TopLevel
  +
  +open Another
  +
  +module Nested =
  +    open OneMore
  +
  +    module DoubleNested =
  +        open OneMore1
  +        #
  +
  +        let _ = DateTime.Now
  +"""
  +
  +[<Test>]
  +let ``top level symbol declared in a nested module in the same file``() =
  +    """
  +module TopLevel
  +
  +module Nested =
  +    type DateTime() = class end
  +
  +let _ = DateTime.Now
  +"""
  +    |> forLine 6
  +    |> andEntity "TopLevel.Nested.DateTime"
  +    |> ns "TopLevel"
  +    |> position """
  +module TopLevel
  +
  +module Nested =
  +    type DateTime() = class end
  +#
  +let _ = DateTime.Now
  +"""
  +
  
positive.code: let _ = DateTime.Now
  """
      |> forLine 3
      |> ns "TopLevel"
      |> position """
  module TopLevel
  
negative.code:     let _ = DateTime.Now
  """
      |> forLine 7
      |> andEntity "System.DateTime"
      |> ns "TopLevel.Nested"
      |> position """
  module TopLevel
  