File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/NHibernate.Test/TypesTest Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public void ShouldPreventInsertionOfTooLongStringThatWouldBeTruncated()
96
96
AssertFailedInsertExceptionDetailsAndEmptyTable ( ex ) ;
97
97
}
98
98
99
+
99
100
private void AssertFailedInsertExceptionDetailsAndEmptyTable ( Exception ex )
100
101
{
101
102
// We can get different sort of exceptions.
@@ -114,6 +115,10 @@ private void AssertFailedInsertExceptionDetailsAndEmptyTable(Exception ex)
114
115
ex . InnerException . Message ,
115
116
Is . EqualTo ( "The length of the string value exceeds the length configured in the mapping/parameter." ) ) ;
116
117
}
118
+ else if ( Dialect is MsSqlCeDialect && ex is InvalidOperationException )
119
+ {
120
+ Assert . That ( ex . Message , Is . StringContaining ( "max=4000, len=4001" ) ) ;
121
+ }
117
122
else
118
123
{
119
124
// In other cases, we expect the database itself to raise an error. This case
You can’t perform that action at this time.
0 commit comments