Skip to content

Commit

Permalink
reach unit test coverage to 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
mt89vein committed Apr 3, 2021
1 parent 8a7fac8 commit e6d1a50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tests/Middlewares.Tests/PipelineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,17 @@ public void Should_Throw_If_Invalid_Component()
// assert
Assert.ThrowsAsync<InvalidOperationException>(TestCode);
}

[Test]
public void Should_ThrowArgNull_If_Invalid_ComponentArgType()
{
Assert.Throws<ArgumentNullException>(() => new PipelineComponents<TestCtx>(nextMiddlewareType: null!));
}

[Test]
public void Should_ThrowArgNull_If_Invalid_ComponentArgFunc()
{
Assert.Throws<ArgumentNullException>(() => new PipelineComponents<TestCtx>(nextFunc: null!));
}
}
}

0 comments on commit e6d1a50

Please # to comment.