public void ShouldBeAssignableToGuardExceptionType() { // Arrange var guardExceptionType = typeof(GuardException); // Act var exception = new ExceptionalExceptionMustNotBeNullException(); // Assert exception.Should().BeAssignableTo(guardExceptionType); }
public void ShouldHaveExceptionalExeptionMustNotBeNullMessage() { // Arrange var expectedExceptionMessage = ExceptionMessage.ExceptionalExceptionMustNotBeNull; // Act var exception = new ExceptionalExceptionMustNotBeNullException(); // Assert exception.Message.Should().Be(expectedExceptionMessage); }