Skip to content

Commit

Permalink
fix: nullable warning from SonarCloud (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbreuss committed Sep 10, 2023
1 parent f8ffa80 commit 22f13f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ public void Parent_ArbitraryPaths_ShouldNotBeNull(string path1,
IDirectoryInfo sut = FileSystem.DirectoryInfo.New(path);

sut.Parent.Should().NotBeNull();
sut.Parent!.Should().NotExist();
sut.Parent.Parent.Should().NotBeNull();
sut.Parent.Parent!.Should().NotExist();
sut.Parent.Should().NotExist();
sut.Parent?.Parent.Should().NotBeNull();
sut.Parent?.Parent.Should().NotExist();
}

[SkippableFact]
Expand Down

0 comments on commit 22f13f4

Please sign in to comment.