@@ -165,17 +165,7 @@ public AndConstraint<NDArrayAssertions> BeShaped(params int[] dimensions)
165165 return new AndConstraint < NDArrayAssertions > ( this ) ;
166166 }
167167
168- public AndConstraint < NDArrayAssertions > Be ( Shape shape , string because = null , params object [ ] becauseArgs )
169- {
170- Execute . Assertion
171- . BecauseOf ( because , becauseArgs )
172- . ForCondition ( Subject . Equals ( shape ) )
173- . FailWith ( $ "Expected shape to be { shape . ToString ( ) } but got { Subject . ToString ( ) } ") ;
174-
175- return new AndConstraint < NDArrayAssertions > ( this ) ;
176- }
177-
178- public AndConstraint < NDArrayAssertions > BeEquivalentTo ( int ? size = null , int ? ndim = null , ITuple shape = null )
168+ public AndConstraint < NDArrayAssertions > BeShaped ( int ? size = null , int ? ndim = null , ITuple shape = null )
179169 {
180170 if ( size . HasValue )
181171 {
@@ -194,7 +184,7 @@ public AndConstraint<NDArrayAssertions> BeEquivalentTo(int? size = null, int? nd
194184 return new AndConstraint < NDArrayAssertions > ( this ) ;
195185 }
196186
197- public AndConstraint < NDArrayAssertions > NotBe ( Shape shape , string because = null , params object [ ] becauseArgs )
187+ public AndConstraint < NDArrayAssertions > NotBeShaped ( Shape shape , string because = null , params object [ ] becauseArgs )
198188 {
199189 Execute . Assertion
200190 . BecauseOf ( because , becauseArgs )
@@ -266,15 +256,20 @@ public AndConstraint<NDArrayAssertions> BeNDim(int ndim)
266256 return new AndConstraint < NDArrayAssertions > ( this ) ;
267257 }
268258
269- public AndConstraint < NDArrayAssertions > HaveValues ( NDArray other )
259+ public AndConstraint < NDArrayAssertions > HaveValues ( NDArray expected )
270260 {
271261 Execute . Assertion
272- . ForCondition ( np . array_equal ( Subject , other ) )
262+ . ForCondition ( np . array_equal ( Subject , expected ) )
273263 . FailWith ( $ "Expected the subject and other ndarray to be equals.") ;
274264
275265 return new AndConstraint < NDArrayAssertions > ( this ) ;
276266 }
277267
268+ public AndConstraint < NDArrayAssertions > Be ( NDArray expected )
269+ {
270+ return HaveValues ( expected ) ;
271+ }
272+
278273 public AndConstraint < NDArrayAssertions > HaveValues ( params object [ ] values )
279274 {
280275 if ( values == null )
0 commit comments