Skip to content

Commit

Permalink
Fix warnings in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrietS committed Oct 15, 2024
1 parent e4f3fa0 commit 5f98b75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 4 additions & 8 deletions tests/LogAlligator.Tests/MainWindowTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ namespace LogAlligator.Tests;

public class MainWindowTests
{
private Window window;
public MainWindowTests()
private readonly Window window = new MainWindow()
{
window = new MainWindow()
{
Width = 500,
Height = 500
};
}
Width = 500,
Height = 500
};

[AvaloniaFact]
public void CloseWindowUsingKeyboard()
Expand Down
2 changes: 0 additions & 2 deletions tests/LogAlligator.Tests/Utils/SearchPatternTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public void PatternSingleChar_ShouldNotMatchDifferentChar()
[Fact]
public void PatternMultipleChars_ShouldMatch()
{
var sr = new SearchResult(0, 2);

var sut = new SearchPattern("ab".AsMemory());

var result = sut.MatchAll("ab_ab".AsMemory());
Expand Down

0 comments on commit 5f98b75

Please sign in to comment.