From 989f368a28a7722bd765ebf4e90acd784e279b08 Mon Sep 17 00:00:00 2001 From: Alexander Luzgarev Date: Thu, 18 Oct 2018 18:16:57 +0200 Subject: [PATCH] Fix test --- Parser.Tests/MParserShould.cs | 4 ++-- Parser.Tests/ThereAndBackAgain.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }