namespace FSharpRefactor.Tests.RenameTests

open NUnit.Framework

open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings.Rename

[<TestFixture>]
type ScopeTreeModule() =
    [<Test>]
    member this.``Creates a scope tree for a simple let statement``() =
        let source = "let a = 1 in a"
        let rootNode = Ast.Parse source
        let scopeTree = makeScopeTree (rootNode.Value)

        match scopeTree with
            | ScopeTree.Declaration("a",_,[ScopeTree.Usage("a",_)]) -> ()
            | _ -> Assert.Fail("The scope tree for 'let a = 1 in a' was incorrect")

namespace FSharpRefactor.Tests.RenameTests

open NUnit.Framework

open FSharpRefactor.Engine.Ast
open FSharpRefactor.Refactorings.Rename

[<TestFixture>]
type ScopeTreeModule() =
    [<Test>]
    member this.``Creates a scope tree for a simple let statement``() =
        let source = "let a = 1 in a"
        let rootNode = Ast.Parse source
        let scopeTree = makeScopeTree (rootNode.Value)

        match scopeTree with
            | [ScopeTree.Declaration(["a",_],[ScopeTree.Usage("a",_)])] -> ()
            | _ -> Assert.Fail("The scope tree for 'let a = 1 in a' was incorrect: " + (sprintf "%A" scopeTree))

Print the actual scope tree for easier debugging
Print the actual scope tree for easier debugging
