From e6d1a50d56613df2d5361a8e8aa11a43aa1511a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=83=D0=BB=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=A8?= =?UTF-8?q?=D0=B0=D0=BC=D0=B8=D0=BB=D1=8C?= Date: Sat, 3 Apr 2021 19:36:39 +0500 Subject: [PATCH] reach unit test coverage to 100% --- Tests/Middlewares.Tests/PipelineTests.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Tests/Middlewares.Tests/PipelineTests.cs b/Tests/Middlewares.Tests/PipelineTests.cs index 1b73eed..536e5ae 100644 --- a/Tests/Middlewares.Tests/PipelineTests.cs +++ b/Tests/Middlewares.Tests/PipelineTests.cs @@ -110,5 +110,17 @@ public void Should_Throw_If_Invalid_Component() // assert Assert.ThrowsAsync(TestCode); } + + [Test] + public void Should_ThrowArgNull_If_Invalid_ComponentArgType() + { + Assert.Throws(() => new PipelineComponents(nextMiddlewareType: null!)); + } + + [Test] + public void Should_ThrowArgNull_If_Invalid_ComponentArgFunc() + { + Assert.Throws(() => new PipelineComponents(nextFunc: null!)); + } } } \ No newline at end of file