@@ -79,5 +79,32 @@ private DiagnosticMetadata(string message, string helpLink, [CallerMemberName] s
7979 public static DiagnosticMetadata DictionaryShouldContainPair_ShouldContainKeyAndContainValue = new ( "Use .Should().Contain() " , GetHelpLink ( "Dictionaries-6" ) ) ;
8080 public static DiagnosticMetadata DictionaryShouldContainPair_ShouldContainValueAndContainKey = new ( "Use .Should().Contain() " , GetHelpLink ( "Dictionaries-6" ) ) ;
8181
82+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyAndMessageShouldBe = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
83+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyWhichMessageShouldBe = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
84+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyAndMessageShouldContain = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
85+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyWhichMessageShouldContain = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
86+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyAndMessageShouldEndWith = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
87+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyWhichMessageShouldEndWith = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
88+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyAndMessageShouldStartWith = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
89+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithMessage_ShouldThrowExactlyWhichMessageShouldStartWith = new ( "Use .Should().ThrowExactly<TException>().WithMessage()" , GetHelpLink ( "Exceptions-1" ) ) ;
90+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowAndMessageShouldBe = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
91+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowWhichMessageShouldBe = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
92+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowAndMessageShouldContain = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
93+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowWhichMessageShouldContain = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
94+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowAndMessageShouldEndWith = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
95+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowWhichMessageShouldEndWith = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
96+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowAndMessageShouldStartWith = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
97+ public static DiagnosticMetadata ExceptionShouldThrowWithMessage_ShouldThrowWhichMessageShouldStartWith = new ( "Use .Should().Throw<TException>().WithMessage()" , GetHelpLink ( "Exceptions-2" ) ) ;
98+
99+ public static DiagnosticMetadata ExceptionShouldThrowWithInnerException_ShouldThrowAndInnerExceptionShouldBeOfType = new ( "Use .Should().Throw<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
100+ public static DiagnosticMetadata ExceptionShouldThrowWithInnerException_ShouldThrowWhichInnerExceptionShouldBeOfType = new ( "Use .Should().Throw<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
101+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithInnerException_ShouldThrowExactlyAndInnerExceptionShouldBeOfType = new ( "Use .Should().ThrowExactly<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
102+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithInnerException_ShouldThrowExactlyWhichInnerExceptionShouldBeOfType = new ( "Use .Should().ThrowExactly<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
103+ public static DiagnosticMetadata ExceptionShouldThrowWithInnerException_ShouldThrowAndInnerExceptionShouldBeAssignableTo = new ( "Use .Should().Throw<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
104+ public static DiagnosticMetadata ExceptionShouldThrowWithInnerException_ShouldThrowWhichInnerExceptionShouldBeAssignableTo = new ( "Use .Should().Throw<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
105+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithInnerException_ShouldThrowExactlyAndInnerExceptionShouldBeAssignableTo = new ( "Use .Should().ThrowExactly<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
106+ public static DiagnosticMetadata ExceptionShouldThrowExactlyWithInnerException_ShouldThrowExactlyWhichInnerExceptionShouldBeAssignableTo = new ( "Use .Should().ThrowExactly<TException>().WithInnerException<TInnerException>()" , string . Empty ) ;
107+
108+
82109 private static string GetHelpLink ( string id ) => $ "https://fluentassertions.com/tips/#{ id } ";
83110}
0 commit comments