diff --git a/Parser.Tests/MParserShould.cs b/Parser.Tests/MParserShould.cs index 6cfe48e..06f020c 100644 --- a/Parser.Tests/MParserShould.cs +++ b/Parser.Tests/MParserShould.cs @@ -17,7 +17,7 @@ namespace Parser.Tests var text = "a = b"; var sut = GetSut(text); var actual = sut.Parse(); - var assignment = actual.StatementList[0].AsNode(); + var assignment = actual.Root.StatementList[0].AsNode(); Assert.IsInstanceOf(assignment); Assert.IsInstanceOf(((ExpressionStatementSyntaxNode)assignment).Expression); } @@ -28,7 +28,7 @@ namespace Parser.Tests var text = "a = "; var sut = GetSut(text); var actual = sut.Parse(); - var assignment = actual.StatementList[0].AsNode(); + var assignment = actual.Root.StatementList[0].AsNode(); Assert.IsInstanceOf(assignment); Assert.IsInstanceOf(((ExpressionStatementSyntaxNode)assignment).Expression); } diff --git a/Parser.Tests/ThereAndBackAgain.cs b/Parser.Tests/ThereAndBackAgain.cs index 3822f7d..3c36a92 100644 --- a/Parser.Tests/ThereAndBackAgain.cs +++ b/Parser.Tests/ThereAndBackAgain.cs @@ -48,7 +48,7 @@ namespace Parser.Tests var window = new TextWindowWithNull(text, fileName); var parser = CreateParser(window); var tree = parser.Parse(); - var actual = tree.FullText; + var actual = tree.Root.FullText; Assert.That(actual == text); }