Skip to content

Commit

Permalink
Fixed Edge Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jul 10, 2023
1 parent 4c00c2e commit 2ea2bed
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,22 @@ public void CreateEdge_ArgumentsArePassedCorrectly(
}

[Fact]
public void CreateEdge_CursorIsNull_ArgumentNullException()
public void CreateEdge_CursorIsNull_ArgumentNullException_1()
{
// arrange
// act
void Action() => new Edge<string>("abc", null!);
void Action() => new Edge<string>("abc", default(string)!);

// assert
Assert.Throws<ArgumentNullException>(Action);
}

[Fact]
public void CreateEdge_CursorIsNull_ArgumentNullException_2()
{
// arrange
// act
void Action() => new Edge<string>("abc", default(Func<string, string>)!);

// assert
Assert.Throws<ArgumentNullException>(Action);
Expand Down

0 comments on commit 2ea2bed

Please sign in to comment.