Skip to content

Commit

Permalink
fixed broken test, addressed compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Apr 21, 2021
1 parent af56186 commit 0ca3f6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion RubberduckTests/CodeExplorer/MockedCodeExplorer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
using Rubberduck.VBEditor.SourceCodeHandling;
using Rubberduck.VBEditor.Utility;
using RubberduckTests.Settings;
using Rubberduck.Refactorings;
using System.IO.Abstractions;

namespace RubberduckTests.CodeExplorer
Expand Down
2 changes: 1 addition & 1 deletion RubberduckTests/Symbols/DeclarationFinderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ End Sub
var expected = declarations.FirstOrDefault(decl => decl.IdentifierName.Equals("expected"));

var enclosing = declarations.FirstOrDefault(decl => decl.IdentifierName.Equals("Bar"));
var context = enclosing?.Context.GetDescendent<VBAParser.ArgumentExpressionContext>();
var context = enclosing?.Context.GetDescendent<VBAParser.ArgumentContext>();
var actual = state.DeclarationFinder.FindParameterOfNonDefaultMemberFromSimpleArgumentNotPassedByValExplicitly(context, enclosing);

Assert.AreEqual(expected, actual);
Expand Down

0 comments on commit 0ca3f6f

Please sign in to comment.