protected void ThenAnExceptionIsThrown()
 {
     ThrownException.Should().NotBeNull();
 }
示例#2
0
 protected void ThenAConcurrencyExceptionIsThrown()
 {
     ThrownException.Should().BeOfType <ConcurrencyException>();
 }
 public void ShouldThrownInvalidOperationException()
 {
     ThrownException.Should().BeOfType <InvalidOperationException>();
     ThrownException.Message.Should().Be($"There is no sorter for {SortBy}");
 }
示例#4
0
 protected void ThenAnInvalidOperationExceptionIsThrownWithMessage(string expectedMessage)
 {
     ThrownException.Should().BeOfType <InvalidOperationException>();
     ThrownException.Message.Should().Be(expectedMessage);
 }
示例#5
0
 private void ThenAnAggregateNotFoundExceptionIsThrown()
 {
     ThrownException.Should().BeOfType <AggregateNotFoundException>();
 }