public void When_set_message_Then_contains_message() { // Arrange Act var exception = new ModelBindingFailedException("test"); // Assert exception.Message.Should().Be("test"); }
public void Then_is_created() { // Arrange Act var exception = new ModelBindingFailedException(); // Assert exception.Should().BeOfType <ModelBindingFailedException>(); }
public void When_set_prev_exception_Then_contains_exception() { // Arrange var prev = new Exception(); // Act var exception = new ModelBindingFailedException("test", prev); // Assert exception.InnerException.Should().Be(prev); }