diff --git a/tests/RepoM.Api.Tests/BootstrapperTests.cs b/tests/RepoM.Api.Tests/BootstrapperTests.cs new file mode 100644 index 00000000..9da9e4b4 --- /dev/null +++ b/tests/RepoM.Api.Tests/BootstrapperTests.cs @@ -0,0 +1,28 @@ +namespace RepoM.Api.Tests; + +using FakeItEasy; +using RepoM.Api.Plugins; +using System; +using System.IO.Abstractions; +using FluentAssertions; +using Microsoft.Extensions.Logging; +using Xunit; + +public class BootstrapperTests +{ + [Fact] + public void Ctor_ShouldThrow_WhenArgumentNull() + { + // arrange + + // act + Func act1 = () => new CoreBootstrapper(A.Dummy(), A.Dummy(), null!); + Func act2 = () => new CoreBootstrapper(A.Dummy(), null!, A.Dummy()); + Func act3 = () => new CoreBootstrapper(null!, A.Dummy(), A.Dummy()); + + // assert + act1.Should().Throw(); + act2.Should().Throw(); + act3.Should().Throw(); + } +} \ No newline at end of file