Пример #1
0
 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>();
 }