@@ -57,7 +57,7 @@ public void WrongFilterDefInClass()
57
57
var cfg = GetConfiguration ( ) ;
58
58
var e = Assert . Throws < MappingException > ( ( ) => cfg . AddResource ( "NHibernate.Test.FilterTest.WrongFilterDefInClass.hbm.xml" , GetType ( ) . Assembly ) ) ;
59
59
Assert . That ( e . InnerException , Is . Not . Null ) ;
60
- Assert . That ( e . InnerException . Message , Is . StringStarting ( "no filter condition" ) . IgnoreCase ) ;
60
+ Assert . That ( e . InnerException . Message , Does . StartWith ( "no filter condition" ) . IgnoreCase ) ;
61
61
}
62
62
63
63
[ Test ]
@@ -93,7 +93,7 @@ public void WrongFilterDefInClassSeconPass()
93
93
cfg . AddXmlString ( wrongClassMap ) ;
94
94
cfg . AddXmlString ( wrongFilterDef ) ;
95
95
var e = Assert . Throws < MappingException > ( cfg . BuildMappings ) ;
96
- Assert . That ( e . Message , Is . StringStarting ( "no filter condition" ) . IgnoreCase ) ;
96
+ Assert . That ( e . Message , Does . StartWith ( "no filter condition" ) . IgnoreCase ) ;
97
97
}
98
98
99
99
[ Test ]
@@ -103,8 +103,8 @@ public void AddClassWithFiltersWithoutFilterDef()
103
103
var cfg = GetConfiguration ( ) ;
104
104
cfg . AddResource ( "NHibernate.Test.FilterTest.SimpleFiltered.hbm.xml" , GetType ( ) . Assembly ) ;
105
105
var e = Assert . Throws < MappingException > ( cfg . BuildMappings ) ;
106
- Assert . That ( e . Message , Is . StringStarting ( "filter-def for filter named" ) ) ;
107
- Assert . That ( e . Message , Is . StringContaining ( "was not found" ) ) ;
106
+ Assert . That ( e . Message , Does . StartWith ( "filter-def for filter named" ) ) ;
107
+ Assert . That ( e . Message , Does . Contain ( "was not found" ) ) ;
108
108
}
109
109
110
110
[ Test ]
@@ -197,7 +197,7 @@ public void DuplicatedFilterDef()
197
197
var cfg = GetConfiguration ( ) ;
198
198
var e = Assert . Throws < MappingException > ( ( ) => cfg . AddXmlString ( filterDef ) ) ;
199
199
Assert . That ( e . InnerException , Is . Not . Null ) ;
200
- Assert . That ( e . InnerException . Message , Is . StringContaining ( "Duplicated filter-def" ) ) ;
200
+ Assert . That ( e . InnerException . Message , Does . Contain ( "Duplicated filter-def" ) ) ;
201
201
}
202
202
203
203
[ Test ]
@@ -223,8 +223,8 @@ public void MissedFilterDef()
223
223
var cfg = GetConfiguration ( ) ;
224
224
cfg . AddXmlString ( classMap ) ;
225
225
var e = Assert . Throws < MappingException > ( ( ) => cfg . BuildSessionFactory ( ) ) ;
226
- Assert . That ( e . Message , Is . StringStarting ( "filter-def for filter named" ) ) ;
227
- Assert . That ( e . Message , Is . StringContaining ( "was not found" ) ) ;
226
+ Assert . That ( e . Message , Does . StartWith ( "filter-def for filter named" ) ) ;
227
+ Assert . That ( e . Message , Does . Contain ( "was not found" ) ) ;
228
228
}
229
229
230
230
[ Test ]
@@ -248,8 +248,8 @@ public void FilterDefWithoutReference()
248
248
cfg . BuildSessionFactory ( ) ;
249
249
250
250
var wholeLog = String . Join ( "\r \n " , memoryAppender . GetEvents ( ) . Select ( x => x . RenderedMessage ) . ToArray ( ) ) ;
251
- Assert . That ( wholeLog , Is . StringContaining ( "filter-def for filter named" ) ) ;
252
- Assert . That ( wholeLog , Is . StringContaining ( "was never used to filter classes nor collections." ) ) ;
251
+ Assert . That ( wholeLog , Does . Contain ( "filter-def for filter named" ) ) ;
252
+ Assert . That ( wholeLog , Does . Contain ( "was never used to filter classes nor collections." ) ) ;
253
253
}
254
254
finally
255
255
{
0 commit comments