Exemplo n.º 1
0
 public static IAssert <TSubject, TResult, TVars, TSequence> ItThrowsInner <TSubject, TResult, TVars, TSequence>(
     this IAssert <TSubject, TResult, TVars, TSequence> assert,
     Type exceptionType,
     string message)
 {
     return(assert
            .It("throws correct inner exception", x => x.Exception.InnerException.Should().BeOfType(exceptionType))
            .It("throws correct inner message", x => x.Exception.InnerException.Message.Should().Be(message)));
 }