4
<name>Rhino.Mocks</name>
7
<member name="T:Rhino.Mocks.Arg`1">
9
Defines constraints and return values for arguments of a mock.
10
Only use Arg inside a method call on a mock that is recording.
14
Arg<int>.Is.GreaterThan(2),
15
Arg<string>.Is.Anything
17
Use Arg.Text for string specific constraints
18
Use Arg<ListClass>.List for list specific constraints
20
<typeparam name="T"></typeparam>
22
<member name="M:Rhino.Mocks.Arg`1.Matches(System.Linq.Expressions.Expression{System.Predicate{`0}})">
24
Register the predicate as a constraint for the current call.
26
<param name="predicate">The predicate.</param>
27
<returns>default(T)</returns>
29
Allow you to use code to create constraints
31
demo.AssertWasCalled(x => x.Bar(Arg{string}.Matches(a => a.StartsWith("b") && a.Contains("ba"))));
35
<member name="M:Rhino.Mocks.Arg`1.Matches(Rhino.Mocks.Constraints.AbstractConstraint)">
37
Define a complex constraint for this argument by passing several constraints
38
combined with operators. (Use Is in simple cases.)
39
Example: Arg<string>.Matches(Is.Equal("Hello") || Text.EndsWith("u"));
41
<param name="constraint">Constraints using Is, Text and List</param>
42
<returns>Dummy to satisfy the compiler</returns>
44
<member name="M:Rhino.Mocks.Arg`1.Ref(Rhino.Mocks.Constraints.AbstractConstraint,`0)">
46
Define a Ref argument.
48
<param name="constraint">Constraints for this argument</param>
49
<param name="returnValue">value returned by the mock</param>
52
<member name="M:Rhino.Mocks.Arg`1.Out(`0)">
54
Define a out parameter. Use it together with the keyword out and use the
55
Dummy field available by the return value.
56
Example: mock.foo( out Arg<string>.Out("hello").Dummy );
58
<param name="returnValue"></param>
61
<member name="P:Rhino.Mocks.Arg`1.Is">
63
Define a simple constraint for this argument. (Use Matches in simple cases.)
65
Arg<int>.Is.Anthing
66
Arg<string>.Is.Equal("hello")
69
<member name="P:Rhino.Mocks.Arg`1.List">
71
Define Constraints on list arguments.
74
<member name="T:Rhino.Mocks.Arg">
76
Use the Arg class (without generic) to define Text constraints
79
<member name="M:Rhino.Mocks.Arg.Is``1(``0)">
81
Evaluate an equal constraint for <see cref="T:System.IComparable"/>.
83
<param name="arg">The object the parameter should equal to</param>
85
<member name="P:Rhino.Mocks.Arg.Text">
87
Define constraints on text arguments.
90
<member name="T:Rhino.Mocks.ArgManager">
92
Used to manage the static state of the Arg<T> class"/>
95
<member name="M:Rhino.Mocks.ArgManager.Clear">
97
Resets the static state
100
<member name="M:Rhino.Mocks.ArgManager.GetAllReturnValues">
102
Returns return values for the out and ref parameters
103
Note: the array returned has the size of the number of out and ref
108
<member name="M:Rhino.Mocks.ArgManager.GetAllConstraints">
110
Returns the constraints for all arguments.
111
Out arguments have an Is.Anything constraint and are also in the list.
115
<member name="T:Rhino.Mocks.BackToRecordOptions">
117
What should BackToRecord clear
120
<member name="F:Rhino.Mocks.BackToRecordOptions.None">
122
Retain all expectations and behaviors and return to mock
125
<member name="F:Rhino.Mocks.BackToRecordOptions.Expectations">
130
<member name="F:Rhino.Mocks.BackToRecordOptions.EventSubscribers">
132
Event subscribers for this instance
135
<member name="F:Rhino.Mocks.BackToRecordOptions.OriginalMethodsToCall">
137
Methods that should be forwarded to the base class implementation
140
<member name="F:Rhino.Mocks.BackToRecordOptions.PropertyBehavior">
142
Properties that should behave like properties
145
<member name="F:Rhino.Mocks.BackToRecordOptions.All">
147
Remove all the behavior of the object
150
<member name="T:Rhino.Mocks.Constraints.AbstractConstraint">
152
Interface for constraints
155
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.Eval(System.Object)">
157
Determines if the object pass the constraints
160
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.op_BitwiseAnd(Rhino.Mocks.Constraints.AbstractConstraint,Rhino.Mocks.Constraints.AbstractConstraint)">
162
And operator for constraints
165
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.op_LogicalNot(Rhino.Mocks.Constraints.AbstractConstraint)">
167
Not operator for constraints
170
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.op_BitwiseOr(Rhino.Mocks.Constraints.AbstractConstraint,Rhino.Mocks.Constraints.AbstractConstraint)">
172
Or operator for constraints
175
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.op_False(Rhino.Mocks.Constraints.AbstractConstraint)">
177
Allow overriding of || or &&
179
<param name="c"></param>
182
<member name="M:Rhino.Mocks.Constraints.AbstractConstraint.op_True(Rhino.Mocks.Constraints.AbstractConstraint)">
184
Allow overriding of || or &&
186
<param name="c"></param>
189
<member name="P:Rhino.Mocks.Constraints.AbstractConstraint.Message">
191
Gets the message for this constraint
195
<member name="T:Rhino.Mocks.Constraints.PublicFieldIs">
197
Constrain that the public field has a specified value
200
<member name="T:Rhino.Mocks.Constraints.PublicFieldConstraint">
202
Constrain that the public field matches another constraint.
205
<member name="M:Rhino.Mocks.Constraints.PublicFieldConstraint.#ctor(System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
207
Creates a new <see cref="T:Rhino.Mocks.Constraints.PublicFieldConstraint"/> instance.
209
<param name="publicFieldName">Name of the public field.</param>
210
<param name="constraint">Constraint to place on the public field value.</param>
212
<member name="M:Rhino.Mocks.Constraints.PublicFieldConstraint.#ctor(System.Type,System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
214
Creates a new <see cref="T:Rhino.Mocks.Constraints.PublicFieldConstraint"/> instance, specifying a disambiguating
215
<paramref name="declaringType"/> for the public field.
217
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
218
<param name="publicFieldName">Name of the public field.</param>
219
<param name="constraint">Constraint to place on the public field value.</param>
221
<member name="M:Rhino.Mocks.Constraints.PublicFieldConstraint.Eval(System.Object)">
223
Determines if the object passes the constraint.
226
<member name="P:Rhino.Mocks.Constraints.PublicFieldConstraint.Message">
228
Gets the message for this constraint
232
<member name="M:Rhino.Mocks.Constraints.PublicFieldIs.#ctor(System.String,System.Object)">
234
Creates a new <see cref="T:Rhino.Mocks.Constraints.PublicFieldIs"/> instance.
236
<param name="publicFieldName">Name of the public field.</param>
237
<param name="expectedValue">Expected value.</param>
239
<member name="M:Rhino.Mocks.Constraints.PublicFieldIs.#ctor(System.Type,System.String,System.Object)">
241
Creates a new <see cref="T:Rhino.Mocks.Constraints.PublicFieldIs"/> instance, specifying a disambiguating
242
<paramref name="declaringType"/> for the public field.
244
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
245
<param name="publicFieldName">Name of the public field.</param>
246
<param name="expectedValue">Expected value.</param>
248
<member name="T:Rhino.Mocks.Constraints.PropertyIs">
250
Constrain that the property has a specified value
253
<member name="T:Rhino.Mocks.Constraints.PropertyConstraint">
255
Constrain that the property matches another constraint.
258
<member name="M:Rhino.Mocks.Constraints.PropertyConstraint.#ctor(System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
260
Creates a new <see cref="T:Rhino.Mocks.Constraints.PropertyConstraint"/> instance.
262
<param name="propertyName">Name of the property.</param>
263
<param name="constraint">Constraint to place on the property value.</param>
265
<member name="M:Rhino.Mocks.Constraints.PropertyConstraint.#ctor(System.Type,System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
267
Creates a new <see cref="T:Rhino.Mocks.Constraints.PropertyConstraint"/> instance, specifying a disambiguating
268
<paramref name="declaringType"/> for the property.
270
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
271
<param name="propertyName">Name of the property.</param>
272
<param name="constraint">Constraint to place on the property value.</param>
274
<member name="M:Rhino.Mocks.Constraints.PropertyConstraint.Eval(System.Object)">
276
Determines if the object passes the constraint.
279
<member name="P:Rhino.Mocks.Constraints.PropertyConstraint.Message">
281
Gets the message for this constraint
285
<member name="M:Rhino.Mocks.Constraints.PropertyIs.#ctor(System.String,System.Object)">
287
Creates a new <see cref="T:Rhino.Mocks.Constraints.PropertyIs"/> instance.
289
<param name="propertyName">Name of the property.</param>
290
<param name="expectedValue">Expected value.</param>
292
<member name="M:Rhino.Mocks.Constraints.PropertyIs.#ctor(System.Type,System.String,System.Object)">
294
Creates a new <see cref="T:Rhino.Mocks.Constraints.PropertyIs"/> instance, specifying a disambiguating
295
<paramref name="declaringType"/> for the property.
297
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
298
<param name="propertyName">Name of the property.</param>
299
<param name="expectedValue">Expected value.</param>
301
<member name="T:Rhino.Mocks.Constraints.TypeOf">
303
Constrain that the parameter must be of the specified type
306
<member name="M:Rhino.Mocks.Constraints.TypeOf.#ctor(System.Type)">
308
Creates a new <see cref="T:Rhino.Mocks.Constraints.TypeOf"/> instance.
310
<param name="type">Type.</param>
312
<member name="M:Rhino.Mocks.Constraints.TypeOf.Eval(System.Object)">
314
Determines if the object pass the constraints
317
<member name="P:Rhino.Mocks.Constraints.TypeOf.Message">
319
Gets the message for this constraint
323
<member name="T:Rhino.Mocks.Constraints.Same">
325
Constraint that determines whether an object is the same object as another.
328
<member name="M:Rhino.Mocks.Constraints.Same.#ctor(System.Object)">
330
Creates a new <see cref="T:Rhino.Mocks.Constraints.Equal"/> instance.
332
<param name="obj">Obj.</param>
334
<member name="M:Rhino.Mocks.Constraints.Same.Eval(System.Object)">
336
Determines if the object passes the constraints.
339
<member name="P:Rhino.Mocks.Constraints.Same.Message">
341
Gets the message for this constraint.
344
<member name="T:Rhino.Mocks.Constraints.PredicateConstraint`1">
346
Evaluate a parameter using constraints
349
<member name="M:Rhino.Mocks.Constraints.PredicateConstraint`1.#ctor(System.Predicate{`0})">
353
<param name="predicate"></param>
355
<member name="M:Rhino.Mocks.Constraints.PredicateConstraint`1.Eval(System.Object)">
357
Determines if the object pass the constraints
360
<member name="P:Rhino.Mocks.Constraints.PredicateConstraint`1.Message">
362
Gets the message for this constraint
366
<member name="T:Rhino.Mocks.Constraints.LambdaConstraint">
368
A constraint based on lambda expression, we are using Expression{T}
369
because we want to be able to get good error reporting on that.
372
<member name="M:Rhino.Mocks.Constraints.LambdaConstraint.#ctor(System.Linq.Expressions.LambdaExpression)">
374
Initializes a new instance of the <see cref="T:Rhino.Mocks.Constraints.LambdaConstraint"/> class.
376
<param name="expr">The expr.</param>
378
<member name="M:Rhino.Mocks.Constraints.LambdaConstraint.Eval(System.Object)">
380
Determines if the object pass the constraints
382
<param name="obj"></param>
385
<member name="P:Rhino.Mocks.Constraints.LambdaConstraint.Message">
387
Gets the message for this constraint
391
<member name="T:Rhino.Mocks.Constraints.CollectionEqual">
393
Constrain that the list contains the same items as the parameter list
396
<member name="M:Rhino.Mocks.Constraints.CollectionEqual.#ctor(System.Collections.IEnumerable)">
398
Creates a new <see cref="T:Rhino.Mocks.Constraints.CollectionEqual"/> instance.
400
<param name="collection">In list.</param>
402
<member name="M:Rhino.Mocks.Constraints.CollectionEqual.Eval(System.Object)">
404
Determines if the object pass the constraints
407
<member name="P:Rhino.Mocks.Constraints.CollectionEqual.Message">
409
Gets the message for this constraint
413
<member name="T:Rhino.Mocks.Constraints.OneOf">
415
Constrain that the parameter is one of the items in the list
418
<member name="M:Rhino.Mocks.Constraints.OneOf.#ctor(System.Collections.IEnumerable)">
420
Creates a new <see cref="T:Rhino.Mocks.Constraints.OneOf"/> instance.
422
<param name="collection">In list.</param>
424
<member name="M:Rhino.Mocks.Constraints.OneOf.Eval(System.Object)">
426
Determines if the object pass the constraints
429
<member name="P:Rhino.Mocks.Constraints.OneOf.Message">
431
Gets the message for this constraint
435
<member name="T:Rhino.Mocks.Constraints.IsIn">
437
Constrain that the object is inside the parameter list
440
<member name="M:Rhino.Mocks.Constraints.IsIn.#ctor(System.Object)">
442
Creates a new <see cref="T:Rhino.Mocks.Constraints.IsIn"/> instance.
444
<param name="inList">In list.</param>
446
<member name="M:Rhino.Mocks.Constraints.IsIn.Eval(System.Object)">
448
Determines if the object pass the constraints
451
<member name="P:Rhino.Mocks.Constraints.IsIn.Message">
453
Gets the message for this constraint
457
<member name="T:Rhino.Mocks.Constraints.CollectionCount">
459
Applies another AbstractConstraint to the collection count.
462
<member name="M:Rhino.Mocks.Constraints.CollectionCount.#ctor(Rhino.Mocks.Constraints.AbstractConstraint)">
464
Creates a new <see cref="T:Rhino.Mocks.Constraints.CollectionCount"/> instance.
466
<param name="constraint">The constraint that should be applied to the collection count.</param>
468
<member name="M:Rhino.Mocks.Constraints.CollectionCount.Eval(System.Object)">
470
Determines if the parameter conforms to this constraint.
473
<member name="P:Rhino.Mocks.Constraints.CollectionCount.Message">
475
Gets the message for this constraint.
478
<member name="T:Rhino.Mocks.Constraints.ListElement">
480
Applies another AbstractConstraint to a specific list element.
483
<member name="M:Rhino.Mocks.Constraints.ListElement.#ctor(System.Int32,Rhino.Mocks.Constraints.AbstractConstraint)">
485
Creates a new <see cref="T:Rhino.Mocks.Constraints.ListElement"/> instance.
487
<param name="index">The zero-based index of the list element.</param>
488
<param name="constraint">The constraint that should be applied to the list element.</param>
490
<member name="M:Rhino.Mocks.Constraints.ListElement.Eval(System.Object)">
492
Determines if the parameter conforms to this constraint.
495
<member name="P:Rhino.Mocks.Constraints.ListElement.Message">
497
Gets the message for this constraint
501
<member name="T:Rhino.Mocks.Constraints.KeyedListElement`1">
503
Applies another AbstractConstraint to a specific generic keyed list element.
506
<member name="M:Rhino.Mocks.Constraints.KeyedListElement`1.#ctor(`0,Rhino.Mocks.Constraints.AbstractConstraint)">
508
Creates a new <see cref="T:KeyedListElement"/> instance.
510
<param name="key">The key of the list element.</param>
511
<param name="constraint">The constraint that should be applied to the list element.</param>
513
<member name="M:Rhino.Mocks.Constraints.KeyedListElement`1.Eval(System.Object)">
515
Determines if the parameter conforms to this constraint.
518
<member name="P:Rhino.Mocks.Constraints.KeyedListElement`1.Message">
520
Gets the message for this constraint
524
<member name="T:Rhino.Mocks.Constraints.ContainsAll">
526
Constrains that all elements are in the parameter list
529
<member name="M:Rhino.Mocks.Constraints.ContainsAll.#ctor(System.Collections.IEnumerable)">
531
Initializes a new instance of the <see cref="T:Rhino.Mocks.Constraints.ContainsAll"/> class.
533
<param name="these">The these.</param>
535
<member name="M:Rhino.Mocks.Constraints.ContainsAll.Eval(System.Object)">
537
Determines if the object pass the constraints
539
<param name="obj"></param>
542
<member name="P:Rhino.Mocks.Constraints.ContainsAll.Message">
544
Gets the message for this constraint
548
<member name="T:Rhino.Mocks.Constraints.Or">
550
Combines two constraints, constraint pass if either is fine.
553
<member name="M:Rhino.Mocks.Constraints.Or.#ctor(Rhino.Mocks.Constraints.AbstractConstraint,Rhino.Mocks.Constraints.AbstractConstraint)">
555
Creates a new <see cref="T:Rhino.Mocks.Constraints.And"/> instance.
557
<param name="c1">C1.</param>
558
<param name="c2">C2.</param>
560
<member name="M:Rhino.Mocks.Constraints.Or.Eval(System.Object)">
562
Determines if the object pass the constraints
565
<member name="P:Rhino.Mocks.Constraints.Or.Message">
567
Gets the message for this constraint
571
<member name="T:Rhino.Mocks.Constraints.Not">
576
<member name="M:Rhino.Mocks.Constraints.Not.#ctor(Rhino.Mocks.Constraints.AbstractConstraint)">
578
Creates a new <see cref="T:Rhino.Mocks.Constraints.And"/> instance.
580
<param name="c1">C1.</param>
582
<member name="M:Rhino.Mocks.Constraints.Not.Eval(System.Object)">
584
Determines if the object pass the constraints
587
<member name="P:Rhino.Mocks.Constraints.Not.Message">
589
Gets the message for this constraint
593
<member name="T:Rhino.Mocks.Constraints.And">
595
Combines two constraints
599
<member name="M:Rhino.Mocks.Constraints.And.#ctor(Rhino.Mocks.Constraints.AbstractConstraint,Rhino.Mocks.Constraints.AbstractConstraint)">
601
Creates a new <see cref="T:Rhino.Mocks.Constraints.And"/> instance.
603
<param name="c1">C1.</param>
604
<param name="c2">C2.</param>
606
<member name="M:Rhino.Mocks.Constraints.And.Eval(System.Object)">
608
Determines if the object pass the constraints
611
<member name="P:Rhino.Mocks.Constraints.And.Message">
613
Gets the message for this constraint
617
<member name="T:Rhino.Mocks.Constraints.Like">
619
Constrain the argument to validate according to regex pattern
622
<member name="M:Rhino.Mocks.Constraints.Like.#ctor(System.String)">
624
Creates a new <see cref="T:Rhino.Mocks.Constraints.Like"/> instance.
626
<param name="pattern">Pattern.</param>
628
<member name="M:Rhino.Mocks.Constraints.Like.Eval(System.Object)">
630
Determines if the object pass the constraints
633
<member name="P:Rhino.Mocks.Constraints.Like.Message">
635
Gets the message for this constraint
639
<member name="T:Rhino.Mocks.Constraints.Contains">
641
Constraint that evaluate whatever an argument contains the specified string.
644
<member name="M:Rhino.Mocks.Constraints.Contains.#ctor(System.String)">
646
Creates a new <see cref="T:Rhino.Mocks.Constraints.Contains"/> instance.
648
<param name="innerString">Inner string.</param>
650
<member name="M:Rhino.Mocks.Constraints.Contains.Eval(System.Object)">
652
Determines if the object pass the constraints
655
<member name="P:Rhino.Mocks.Constraints.Contains.Message">
657
Gets the message for this constraint
661
<member name="T:Rhino.Mocks.Constraints.EndsWith">
663
Constraint that evaluate whatever an argument ends with the specified string
666
<member name="M:Rhino.Mocks.Constraints.EndsWith.#ctor(System.String)">
668
Creates a new <see cref="T:Rhino.Mocks.Constraints.EndsWith"/> instance.
670
<param name="end">End.</param>
672
<member name="M:Rhino.Mocks.Constraints.EndsWith.Eval(System.Object)">
674
Determines if the object pass the constraints
677
<member name="P:Rhino.Mocks.Constraints.EndsWith.Message">
679
Gets the message for this constraint
683
<member name="T:Rhino.Mocks.Constraints.StartsWith">
685
Constraint that evaluate whatever an argument start with the specified string
688
<member name="M:Rhino.Mocks.Constraints.StartsWith.#ctor(System.String)">
690
Creates a new <see cref="T:Rhino.Mocks.Constraints.StartsWith"/> instance.
692
<param name="start">Start.</param>
694
<member name="M:Rhino.Mocks.Constraints.StartsWith.Eval(System.Object)">
696
Determines if the object pass the constraints
699
<member name="P:Rhino.Mocks.Constraints.StartsWith.Message">
701
Gets the message for this constraint
705
<member name="T:Rhino.Mocks.Constraints.Equal">
707
Constraint that evaluate whatever an object equals another
710
<member name="M:Rhino.Mocks.Constraints.Equal.#ctor(System.Object)">
712
Creates a new <see cref="T:Rhino.Mocks.Constraints.Equal"/> instance.
714
<param name="obj">Obj.</param>
716
<member name="M:Rhino.Mocks.Constraints.Equal.Eval(System.Object)">
718
Determines if the object pass the constraints
721
<member name="P:Rhino.Mocks.Constraints.Equal.Message">
723
Gets the message for this constraint
727
<member name="T:Rhino.Mocks.Constraints.Anything">
729
Constraint that always returns true
732
<member name="M:Rhino.Mocks.Constraints.Anything.Eval(System.Object)">
734
Determines if the object pass the constraints
737
<member name="P:Rhino.Mocks.Constraints.Anything.Message">
739
Gets the message for this constraint
743
<member name="T:Rhino.Mocks.Constraints.ComparingConstraint">
745
Constraint that evaluate whatever a comparable is greater than another
748
<member name="M:Rhino.Mocks.Constraints.ComparingConstraint.#ctor(System.IComparable,System.Boolean,System.Boolean)">
750
Creates a new <see cref="T:Rhino.Mocks.Constraints.ComparingConstraint"/> instance.
753
<member name="M:Rhino.Mocks.Constraints.ComparingConstraint.Eval(System.Object)">
755
Determines if the object pass the constraints
758
<member name="P:Rhino.Mocks.Constraints.ComparingConstraint.Message">
760
Gets the message for this constraint
764
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.#ctor(System.Object)">
766
Initializes a new constraint object.
768
<param name="expected">The expected object, The actual object is passed in as a parameter to the <see cref="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.Eval(System.Object)"/> method</param>
770
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.Eval(System.Object)">
772
Evaluate this constraint.
774
<param name="obj">The actual object that was passed in the method call to the mock.</param>
775
<returns>True when the constraint is met, else false.</returns>
777
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.CheckReferenceType(System.Object,System.Object)">
779
Checks if the properties of the <paramref name="actual"/> object
780
are the same as the properies of the <paramref name="expected"/> object.
782
<param name="expected">The expected object</param>
783
<param name="actual">The actual object</param>
784
<returns>True when both objects have the same values, else False.</returns>
786
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.CheckValue(System.Object,System.Object)">
790
<param name="expected"></param>
791
<param name="actual"></param>
793
<remarks>This is the real heart of the beast.</remarks>
795
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.CheckProperties(System.Object,System.Object)">
797
Used by CheckReferenceType to check all properties of the reference type.
799
<param name="expected">The expected object</param>
800
<param name="actual">The actual object</param>
801
<returns>True when both objects have the same values, else False.</returns>
803
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.CheckFields(System.Object,System.Object)">
805
Used by CheckReferenceType to check all fields of the reference type.
807
<param name="expected">The expected object</param>
808
<param name="actual">The actual object</param>
809
<returns>True when both objects have the same values, else False.</returns>
811
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.CheckCollection(System.Collections.IEnumerable,System.Collections.IEnumerable)">
813
Checks the items of both collections
815
<param name="expectedCollection">The expected collection</param>
816
<param name="actualCollection"></param>
817
<returns>True if both collections contain the same items in the same order.</returns>
819
<member name="M:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.BuildPropertyName">
821
Builds a propertyname from the Stack _properties like 'Order.Product.Price'
822
to be used in the error message.
824
<returns>A nested property name.</returns>
826
<member name="P:Rhino.Mocks.Constraints.AllPropertiesMatchConstraint.Message">
828
Rhino.Mocks uses this property to generate an error message.
831
A message telling the tester why the constraint failed.
834
<member name="T:Rhino.Mocks.Constraints.IsArg`1">
836
Provides access to the constraintes defined in the class <see cref="T:Rhino.Mocks.Constraints.Is"/> to be used in context
837
with the <see cref="T:Rhino.Mocks.Arg`1"/> syntax.
839
<typeparam name="T">The type of the argument</typeparam>
841
<member name="M:Rhino.Mocks.Constraints.IsArg`1.GreaterThan(System.IComparable)">
843
Evaluate a greater than constraint for <see cref="T:System.IComparable"/>.
845
<param name="objToCompare">The object the parameter should be greater than</param>
847
<member name="M:Rhino.Mocks.Constraints.IsArg`1.LessThan(System.IComparable)">
849
Evaluate a less than constraint for <see cref="T:System.IComparable"/>.
851
<param name="objToCompare">The object the parameter should be less than</param>
853
<member name="M:Rhino.Mocks.Constraints.IsArg`1.LessThanOrEqual(System.IComparable)">
855
Evaluate a less than or equal constraint for <see cref="T:System.IComparable"/>.
857
<param name="objToCompare">The object the parameter should be less than or equal to</param>
859
<member name="M:Rhino.Mocks.Constraints.IsArg`1.GreaterThanOrEqual(System.IComparable)">
861
Evaluate a greater than or equal constraint for <see cref="T:System.IComparable"/>.
863
<param name="objToCompare">The object the parameter should be greater than or equal to</param>
865
<member name="M:Rhino.Mocks.Constraints.IsArg`1.Equal(System.Object)">
867
Evaluate an equal constraint for <see cref="T:System.IComparable"/>.
869
<param name="obj">The object the parameter should equal to</param>
871
<member name="M:Rhino.Mocks.Constraints.IsArg`1.NotEqual(System.Object)">
873
Evaluate a not equal constraint for <see cref="T:System.IComparable"/>.
875
<param name="obj">The object the parameter should not equal to</param>
877
<member name="M:Rhino.Mocks.Constraints.IsArg`1.Same(System.Object)">
879
Evaluate a same as constraint.
881
<param name="obj">The object the parameter should the same as.</param>
883
<member name="M:Rhino.Mocks.Constraints.IsArg`1.NotSame(System.Object)">
885
Evaluate a not same as constraint.
887
<param name="obj">The object the parameter should not be the same as.</param>
889
<member name="M:Rhino.Mocks.Constraints.IsArg`1.Equals(System.Object)">
891
Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
893
<param name="obj"></param>
896
<member name="M:Rhino.Mocks.Constraints.IsArg`1.GetHashCode">
898
Serves as a hash function for a particular type.
901
A hash code for the current <see cref="T:System.Object"/>.
904
<member name="P:Rhino.Mocks.Constraints.IsArg`1.Anything">
906
A constraints that accept anything
910
<member name="P:Rhino.Mocks.Constraints.IsArg`1.Null">
912
A constraint that accept only nulls
916
<member name="P:Rhino.Mocks.Constraints.IsArg`1.NotNull">
918
A constraint that accept only non null values
922
<member name="P:Rhino.Mocks.Constraints.IsArg`1.TypeOf">
924
A constraint that accept only value of the specified type.
925
The check is performed on the type that has been defined
926
as the argument type.
929
<member name="T:Rhino.Mocks.Constraints.ListArg`1">
931
Provides access to the constraints defined in the class <see cref="T:Rhino.Mocks.Constraints.Text"/> to be used in context
932
with the <see cref="T:Rhino.Mocks.Arg`1"/> syntax.
935
<member name="M:Rhino.Mocks.Constraints.ListArg`1.IsIn(System.Object)">
937
Determines whether the specified object is in the parameter.
938
The parameter must be IEnumerable.
940
<param name="obj">Obj.</param>
943
<member name="M:Rhino.Mocks.Constraints.ListArg`1.OneOf(System.Collections.IEnumerable)">
945
Determines whatever the parameter is in the collection.
948
<member name="M:Rhino.Mocks.Constraints.ListArg`1.Equal(System.Collections.IEnumerable)">
950
Determines that the parameter collection is identical to the specified collection
953
<member name="M:Rhino.Mocks.Constraints.ListArg`1.Count(Rhino.Mocks.Constraints.AbstractConstraint)">
955
Determines that the parameter collection has the specified number of elements.
957
<param name="constraint">The constraint that should be applied to the collection count.</param>
959
<member name="M:Rhino.Mocks.Constraints.ListArg`1.Element(System.Int32,Rhino.Mocks.Constraints.AbstractConstraint)">
961
Determines that an element of the parameter collections conforms to another AbstractConstraint.
963
<param name="index">The zero-based index of the list element.</param>
964
<param name="constraint">The constraint which should be applied to the list element.</param>
966
<member name="M:Rhino.Mocks.Constraints.ListArg`1.ContainsAll(System.Collections.IEnumerable)">
968
Determines that all elements of the specified collection are in the the parameter collection
970
<param name="collection">The collection to compare against</param>
971
<returns>The constraint which should be applied to the list parameter.</returns>
973
<member name="M:Rhino.Mocks.Constraints.ListArg`1.Equals(System.Object)">
975
Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
977
<param name="obj"></param>
980
<member name="M:Rhino.Mocks.Constraints.ListArg`1.GetHashCode">
982
Serves as a hash function for a particular type.
985
A hash code for the current <see cref="T:System.Object"/>.
988
<member name="T:Rhino.Mocks.Constraints.OutRefArgDummy`1">
990
Provides a dummy field to pass as out or ref argument.
992
<typeparam name="T"></typeparam>
994
<member name="F:Rhino.Mocks.Constraints.OutRefArgDummy`1.Dummy">
996
Dummy field to satisfy the compiler. Used for out and ref arguments.
999
<member name="T:Rhino.Mocks.Constraints.PublicField">
1001
Central location for constraints for object's public fields
1004
<member name="M:Rhino.Mocks.Constraints.PublicField.Value(System.String,System.Object)">
1006
Constrains the parameter to have a public field with the specified value
1008
<param name="publicFieldName">Name of the public field.</param>
1009
<param name="expectedValue">Expected value.</param>
1012
<member name="M:Rhino.Mocks.Constraints.PublicField.Value(System.Type,System.String,System.Object)">
1014
Constrains the parameter to have a public field with the specified value.
1016
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
1017
<param name="publicFieldName">Name of the public field.</param>
1018
<param name="expectedValue">Expected value.</param>
1021
<member name="M:Rhino.Mocks.Constraints.PublicField.ValueConstraint(System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
1023
Constrains the parameter to have a public field satisfying a specified constraint.
1025
<param name="publicFieldName">Name of the public field.</param>
1026
<param name="publicFieldConstraint">Constraint for the public field.</param>
1028
<member name="M:Rhino.Mocks.Constraints.PublicField.ValueConstraint(System.Type,System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
1030
Constrains the parameter to have a public field satisfying a specified constraint.
1032
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
1033
<param name="publicFieldName">Name of the public field.</param>
1034
<param name="publicFieldConstraint">Constraint for the public field.</param>
1036
<member name="M:Rhino.Mocks.Constraints.PublicField.IsNull(System.String)">
1038
Determines whether the parameter has the specified public field and that it is null.
1040
<param name="publicFieldName">Name of the public field.</param>
1043
<member name="M:Rhino.Mocks.Constraints.PublicField.IsNull(System.Type,System.String)">
1045
Determines whether the parameter has the specified public field and that it is null.
1047
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
1048
<param name="publicFieldName">Name of the public field.</param>
1051
<member name="M:Rhino.Mocks.Constraints.PublicField.IsNotNull(System.String)">
1053
Determines whether the parameter has the specified public field and that it is not null.
1055
<param name="publicFieldName">Name of the public field.</param>
1058
<member name="M:Rhino.Mocks.Constraints.PublicField.IsNotNull(System.Type,System.String)">
1060
Determines whether the parameter has the specified public field and that it is not null.
1062
<param name="declaringType">The type that declares the public field, used to disambiguate between public fields.</param>
1063
<param name="publicFieldName">Name of the public field.</param>
1066
<member name="T:Rhino.Mocks.Constraints.Is">
1068
Central location for constraints
1071
<member name="M:Rhino.Mocks.Constraints.Is.GreaterThan(System.IComparable)">
1073
Evaluate a greater than constraint for <see cref="T:System.IComparable"/>.
1075
<param name="objToCompare">The object the parameter should be greater than</param>
1077
<member name="M:Rhino.Mocks.Constraints.Is.LessThan(System.IComparable)">
1079
Evaluate a less than constraint for <see cref="T:System.IComparable"/>.
1081
<param name="objToCompare">The object the parameter should be less than</param>
1083
<member name="M:Rhino.Mocks.Constraints.Is.LessThanOrEqual(System.IComparable)">
1085
Evaluate a less than or equal constraint for <see cref="T:System.IComparable"/>.
1087
<param name="objToCompare">The object the parameter should be less than or equal to</param>
1089
<member name="M:Rhino.Mocks.Constraints.Is.GreaterThanOrEqual(System.IComparable)">
1091
Evaluate a greater than or equal constraint for <see cref="T:System.IComparable"/>.
1093
<param name="objToCompare">The object the parameter should be greater than or equal to</param>
1095
<member name="M:Rhino.Mocks.Constraints.Is.Equal(System.Object)">
1097
Evaluate an equal constraint for <see cref="T:System.IComparable"/>.
1099
<param name="obj">The object the parameter should equal to</param>
1101
<member name="M:Rhino.Mocks.Constraints.Is.NotEqual(System.Object)">
1103
Evaluate a not equal constraint for <see cref="T:System.IComparable"/>.
1105
<param name="obj">The object the parameter should not equal to</param>
1107
<member name="M:Rhino.Mocks.Constraints.Is.Same(System.Object)">
1109
Evaluate a same as constraint.
1111
<param name="obj">The object the parameter should the same as.</param>
1113
<member name="M:Rhino.Mocks.Constraints.Is.NotSame(System.Object)">
1115
Evaluate a not same as constraint.
1117
<param name="obj">The object the parameter should not be the same as.</param>
1119
<member name="M:Rhino.Mocks.Constraints.Is.Anything">
1121
A constraints that accept anything
1125
<member name="M:Rhino.Mocks.Constraints.Is.Null">
1127
A constraint that accept only nulls
1131
<member name="M:Rhino.Mocks.Constraints.Is.NotNull">
1133
A constraint that accept only non null values
1137
<member name="M:Rhino.Mocks.Constraints.Is.TypeOf(System.Type)">
1139
A constraint that accept only value of the specified type
1142
<member name="M:Rhino.Mocks.Constraints.Is.TypeOf``1">
1144
A constraint that accept only value of the specified type
1147
<member name="M:Rhino.Mocks.Constraints.Is.Matching``1(System.Predicate{``0})">
1149
Evaluate a parameter using a predicate
1151
<param name="predicate">The predicate to use</param>
1153
<member name="T:Rhino.Mocks.Constraints.List">
1155
Central location for constraints about lists and collections
1158
<member name="M:Rhino.Mocks.Constraints.List.IsIn(System.Object)">
1160
Determines whether the specified obj is in the parameter.
1161
The parameter must be IEnumerable.
1163
<param name="obj">Obj.</param>
1166
<member name="M:Rhino.Mocks.Constraints.List.OneOf(System.Collections.IEnumerable)">
1168
Determines whatever the parameter is in the collection.
1171
<member name="M:Rhino.Mocks.Constraints.List.Equal(System.Collections.IEnumerable)">
1173
Determines that the parameter collection is identical to the specified collection
1176
<member name="M:Rhino.Mocks.Constraints.List.Count(Rhino.Mocks.Constraints.AbstractConstraint)">
1178
Determines that the parameter collection has the specified number of elements.
1180
<param name="constraint">The constraint that should be applied to the collection count.</param>
1182
<member name="M:Rhino.Mocks.Constraints.List.Element(System.Int32,Rhino.Mocks.Constraints.AbstractConstraint)">
1184
Determines that an element of the parameter collections conforms to another AbstractConstraint.
1186
<param name="index">The zero-based index of the list element.</param>
1187
<param name="constraint">The constraint which should be applied to the list element.</param>
1189
<member name="M:Rhino.Mocks.Constraints.List.Element``1(``0,Rhino.Mocks.Constraints.AbstractConstraint)">
1191
Determines that an element of the parameter collections conforms to another AbstractConstraint.
1193
<param name="key">The key of the element.</param>
1194
<param name="constraint">The constraint which should be applied to the element.</param>
1196
<member name="M:Rhino.Mocks.Constraints.List.ContainsAll(System.Collections.IEnumerable)">
1198
Determines that all elements of the specified collection are in the the parameter collection
1200
<param name="collection">The collection to compare against</param>
1201
<returns>The constraint which should be applied to the list parameter.</returns>
1203
<member name="T:Rhino.Mocks.Constraints.Property">
1205
Central location for constraints for object's properties
1208
<member name="M:Rhino.Mocks.Constraints.Property.Value(System.String,System.Object)">
1210
Constrains the parameter to have property with the specified value
1212
<param name="propertyName">Name of the property.</param>
1213
<param name="expectedValue">Expected value.</param>
1216
<member name="M:Rhino.Mocks.Constraints.Property.Value(System.Type,System.String,System.Object)">
1218
Constrains the parameter to have property with the specified value.
1220
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
1221
<param name="propertyName">Name of the property.</param>
1222
<param name="expectedValue">Expected value.</param>
1225
<member name="M:Rhino.Mocks.Constraints.Property.ValueConstraint(System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
1227
Constrains the parameter to have a property satisfying a specified constraint.
1229
<param name="propertyName">Name of the property.</param>
1230
<param name="propertyConstraint">Constraint for the property.</param>
1232
<member name="M:Rhino.Mocks.Constraints.Property.ValueConstraint(System.Type,System.String,Rhino.Mocks.Constraints.AbstractConstraint)">
1234
Constrains the parameter to have a property satisfying a specified constraint.
1236
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
1237
<param name="propertyName">Name of the property.</param>
1238
<param name="propertyConstraint">Constraint for the property.</param>
1240
<member name="M:Rhino.Mocks.Constraints.Property.IsNull(System.String)">
1242
Determines whether the parameter has the specified property and that it is null.
1244
<param name="propertyName">Name of the property.</param>
1247
<member name="M:Rhino.Mocks.Constraints.Property.IsNull(System.Type,System.String)">
1249
Determines whether the parameter has the specified property and that it is null.
1251
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
1252
<param name="propertyName">Name of the property.</param>
1255
<member name="M:Rhino.Mocks.Constraints.Property.IsNotNull(System.String)">
1257
Determines whether the parameter has the specified property and that it is not null.
1259
<param name="propertyName">Name of the property.</param>
1262
<member name="M:Rhino.Mocks.Constraints.Property.IsNotNull(System.Type,System.String)">
1264
Determines whether the parameter has the specified property and that it is not null.
1266
<param name="declaringType">The type that declares the property, used to disambiguate between properties.</param>
1267
<param name="propertyName">Name of the property.</param>
1270
<member name="M:Rhino.Mocks.Constraints.Property.AllPropertiesMatch(System.Object)">
1272
constraints the parameter to have the exact same property values as the expected object.
1274
<param name="expected">An object, of the same type as the parameter, whose properties are set with the expected values.</param>
1275
<returns>An instance of the constraint that will do the actual check.</returns>
1277
The parameter's public property values and public field values will be matched against the expected object's
1278
public property values and public field values. The first mismatch will be reported and no further matching is done.
1279
The matching is recursive for any property or field that has properties or fields of it's own.
1280
Collections are supported through IEnumerable, which means the constraint will check if the actual and expected
1281
collection contain the same values in the same order, where the values contained by the collection can have properties
1282
and fields of their own that will be checked as well because of the recursive nature of this constraint.
1285
<member name="T:Rhino.Mocks.Constraints.Text">
1287
Central location for all text related constraints
1290
<member name="M:Rhino.Mocks.Constraints.Text.StartsWith(System.String)">
1292
Constrain the argument to starts with the specified string
1295
<member name="M:Rhino.Mocks.Constraints.Text.EndsWith(System.String)">
1297
Constrain the argument to end with the specified string
1300
<member name="M:Rhino.Mocks.Constraints.Text.Contains(System.String)">
1302
Constrain the argument to contain the specified string
1305
<member name="M:Rhino.Mocks.Constraints.Text.Like(System.String)">
1307
Constrain the argument to validate according to regex pattern
1310
<member name="T:Rhino.Mocks.Constraints.TextArg">
1312
Provides access to the constraintes defined in the class <see cref="T:Rhino.Mocks.Constraints.Text"/> to be used in context
1313
with the <see cref="T:Rhino.Mocks.Arg"/> syntax.
1316
<member name="M:Rhino.Mocks.Constraints.TextArg.StartsWith(System.String)">
1318
Constrain the argument to starts with the specified string
1322
<member name="M:Rhino.Mocks.Constraints.TextArg.EndsWith(System.String)">
1324
Constrain the argument to end with the specified string
1327
<member name="M:Rhino.Mocks.Constraints.TextArg.Contains(System.String)">
1329
Constrain the argument to contain the specified string
1332
<member name="M:Rhino.Mocks.Constraints.TextArg.Like(System.String)">
1334
Constrain the argument to validate according to regex pattern
1337
<member name="M:Rhino.Mocks.Constraints.TextArg.Equals(System.Object)">
1339
Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
1341
<param name="obj"></param>
1344
<member name="M:Rhino.Mocks.Constraints.TextArg.GetHashCode">
1346
Serves as a hash function for a particular type.
1349
A hash code for the current <see cref="T:System.Object"/>.
1352
<member name="T:Rhino.Mocks.Delegates">
1354
This class defines a lot of method signatures, which we will use
1355
to allow compatability on net-2.0
1358
<member name="T:Rhino.Mocks.Delegates.Action">
1363
<member name="T:Rhino.Mocks.Delegates.Function`1">
1368
<member name="T:Rhino.Mocks.Delegates.Function`2">
1373
<member name="T:Rhino.Mocks.Delegates.Action`2">
1378
<member name="T:Rhino.Mocks.Delegates.Function`3">
1383
<member name="T:Rhino.Mocks.Delegates.Action`3">
1388
<member name="T:Rhino.Mocks.Delegates.Function`4">
1393
<member name="T:Rhino.Mocks.Delegates.Action`4">
1398
<member name="T:Rhino.Mocks.Delegates.Function`5">
1403
<member name="T:Rhino.Mocks.Delegates.Action`5">
1408
<member name="T:Rhino.Mocks.Delegates.Function`6">
1413
<member name="T:Rhino.Mocks.Delegates.Action`6">
1421
<member name="T:Rhino.Mocks.Delegates.Function`7">
1426
<member name="T:Rhino.Mocks.Delegates.Action`7">
1431
<member name="T:Rhino.Mocks.Delegates.Function`8">
1436
<member name="T:Rhino.Mocks.Delegates.Action`8">
1441
<member name="T:Rhino.Mocks.Delegates.Function`9">
1446
<member name="T:Rhino.Mocks.Delegates.Action`9">
1451
<member name="T:Rhino.Mocks.Delegates.Function`10">
1456
<member name="T:Rhino.Mocks.Delegates.Action`10">
1461
<member name="T:Rhino.Mocks.Delegates.Function`11">
1466
<member name="T:Rhino.Mocks.DoNotExpect">
1468
Allows expectations to be set on methods that should never be called.
1469
For methods with void return value, you need to use LastCall or
1470
DoNotExpect.Call() with a delegate.
1473
<member name="M:Rhino.Mocks.DoNotExpect.Call(System.Object)">
1475
Sets LastCall.Repeat.Never() on /any/ proxy on /any/ repository on the current thread.
1476
This method if not safe for multi threading scenarios.
1479
<member name="M:Rhino.Mocks.DoNotExpect.Call(Rhino.Mocks.Expect.Action)">
1481
Accepts a delegate that will execute inside the method which
1482
LastCall.Repeat.Never() will be applied to.
1483
It is expected to be used with anonymous delegates / lambda expressions and only one
1484
method should be called.
1487
IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
1488
DoNotExpect.Call(delegate{ mockSrv.Stop(); });
1492
<member name="T:Rhino.Mocks.Exceptions.ExpectationViolationException">
1494
An expectaton violation was detected.
1497
<member name="M:Rhino.Mocks.Exceptions.ExpectationViolationException.#ctor(System.String)">
1499
Creates a new <see cref="T:Rhino.Mocks.Exceptions.ExpectationViolationException"/> instance.
1501
<param name="message">Message.</param>
1503
<member name="M:Rhino.Mocks.Exceptions.ExpectationViolationException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1505
Serialization constructor
1508
<member name="T:Rhino.Mocks.Exceptions.ObjectNotMockFromThisRepositoryException">
1510
Signals that an object was call on a mock repository which doesn't
1511
belong to this mock repository or not a mock
1514
<member name="M:Rhino.Mocks.Exceptions.ObjectNotMockFromThisRepositoryException.#ctor(System.String)">
1516
Creates a new <see cref="T:Rhino.Mocks.Exceptions.ObjectNotMockFromThisRepositoryException"/> instance.
1518
<param name="message">Message.</param>
1520
<member name="M:Rhino.Mocks.Exceptions.ObjectNotMockFromThisRepositoryException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
1522
Serialization constructor
1525
<member name="T:Rhino.Mocks.Expect">
1527
Allows to set expectation on methods that has return values.
1528
For methods with void return value, you need to use LastCall
1531
<member name="M:Rhino.Mocks.Expect.Call``1(``0)">
1533
The method options for the last call on /any/ proxy on /any/ repository on the current thread.
1534
This method if not safe for multi threading scenarios, use <see cref="M:Rhino.Mocks.Expect.On(System.Object)"/>.
1537
<member name="M:Rhino.Mocks.Expect.Call(Rhino.Mocks.Expect.Action)">
1539
Accepts a delegate that will execute inside the method, and then return the resulting
1540
<see cref="T:Rhino.Mocks.Interfaces.IMethodOptions`1"/> instance.
1541
It is expected to be used with anonymous delegates / lambda expressions and only one
1542
method should be called.
1545
IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
1546
Expect.Call(delegate{ mockSrv.Start(); }).Throw(new NetworkException());
1550
<member name="M:Rhino.Mocks.Expect.On(System.Object)">
1552
Get the method options for the last method call on the mockInstance.
1555
<member name="T:Rhino.Mocks.Expect.Action">
1557
A delegate that can be used to get better syntax on Expect.Call(delegate { foo.DoSomething(); });
1560
<member name="T:Rhino.Mocks.Expectations.AbstractExpectation">
1562
Abstract class that holds common information for
1566
<member name="T:Rhino.Mocks.Interfaces.IExpectation">
1568
Interface to validate that a method call is correct.
1571
<member name="M:Rhino.Mocks.Interfaces.IExpectation.IsExpected(System.Object[])">
1573
Validate the arguments for the method.
1574
This method can be called numerous times, so be careful about side effects
1576
<param name="args">The arguments with which the method was called</param>
1578
<member name="M:Rhino.Mocks.Interfaces.IExpectation.AddActualCall">
1580
Add an actual method call to this expectation
1583
<member name="M:Rhino.Mocks.Interfaces.IExpectation.ReturnOrThrow(Castle.Core.Interceptor.IInvocation,System.Object[])">
1585
Returns the return value or throw the exception and setup any output / ref parameters
1589
<member name="M:Rhino.Mocks.Interfaces.IExpectation.BuildVerificationFailureMessage">
1591
Builds the verification failure message.
1595
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ErrorMessage">
1597
Gets the error message.
1601
<member name="P:Rhino.Mocks.Interfaces.IExpectation.Expected">
1603
Range of expected calls
1606
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ActualCallsCount">
1608
Number of call actually made for this method
1611
<member name="P:Rhino.Mocks.Interfaces.IExpectation.CanAcceptCalls">
1613
If this expectation is still waiting for calls.
1616
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ReturnValue">
1618
The return value for a method matching this expectation
1621
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ExceptionToThrow">
1623
Gets or sets the exception to throw on a method matching this expectation.
1626
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ActionsSatisfied">
1628
Gets a value indicating whether this instance's action is staisfied.
1629
A staisfied instance means that there are no more requirements from
1630
this method. A method with non void return value must register either
1631
a return value or an exception to throw.
1634
<member name="P:Rhino.Mocks.Interfaces.IExpectation.Method">
1636
Gets the method this expectation is for.
1639
<member name="P:Rhino.Mocks.Interfaces.IExpectation.RepeatableOption">
1641
Gets or sets what special condtions there are for this method
1645
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ExpectationSatisfied">
1647
Gets a value indicating whether this expectation was satisfied
1650
<member name="P:Rhino.Mocks.Interfaces.IExpectation.HasReturnValue">
1652
Specify whatever this expectation has a return value set
1653
You can't check ReturnValue for this because a valid return value include null.
1656
<member name="P:Rhino.Mocks.Interfaces.IExpectation.ActionToExecute">
1658
An action to execute when the method is matched.
1661
<member name="P:Rhino.Mocks.Interfaces.IExpectation.OutRefParams">
1663
Set the out / ref parameters for the method call.
1664
The indexing is zero based and ignores any non out/ref parameter.
1665
It is possible not to pass all the parameters. This method can be called only once.
1668
<member name="P:Rhino.Mocks.Interfaces.IExpectation.Message">
1670
Documentation Message
1673
<member name="P:Rhino.Mocks.Interfaces.IExpectation.Originalinvocation">
1675
Gets the invocation for this expectation
1677
<value>The invocation.</value>
1679
<member name="E:Rhino.Mocks.Interfaces.IExpectation.WhenCalled">
1681
Occurs when the exceptation is match on a method call
1684
<member name="P:Rhino.Mocks.Interfaces.IExpectation.AllowTentativeReturn">
1686
Allow to set the return value in the future, if it was already set.
1689
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.actualCallsCount">
1691
Number of actuall calls made that passed this expectation
1694
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.expected">
1696
Range of expected calls that should pass this expectation.
1699
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.returnValue">
1701
The return value for a method matching this expectation
1704
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.exceptionToThrow">
1706
The exception to throw on a method matching this expectation.
1709
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.method">
1711
The method this expectation is for.
1714
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.returnValueSet">
1716
The return value for this method was set
1719
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.repeatableOption">
1721
Whether this method will repeat
1722
unlimited number of times.
1725
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.actionToExecute">
1727
A delegate that will be run when the
1728
expectation is matched.
1731
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.matchingArgs">
1733
The arguments that matched this expectation.
1736
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.message">
1738
Documentation message
1741
<member name="F:Rhino.Mocks.Expectations.AbstractExpectation.originalInvocation">
1743
The method originalInvocation
1746
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.GetHashCode">
1751
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.AddActualCall">
1753
Add an actual actualMethodCall call to this expectation
1756
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.BuildVerificationFailureMessage">
1758
Builds the verification failure message.
1762
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.ReturnOrThrow(Castle.Core.Interceptor.IInvocation,System.Object[])">
1764
Returns the return value or throw the exception and setup output / ref parameters
1767
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.IsExpected(System.Object[])">
1769
Validate the arguments for the method on the child methods
1771
<param name="args">The arguments with which the method was called</param>
1773
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.#ctor(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Impl.Range)">
1775
Creates a new <see cref="T:Rhino.Mocks.Expectations.AbstractExpectation"/> instance.
1777
<param name="invocation">The originalInvocation for this method, required because it contains the generic type infromation</param>
1778
<param name="expectedRange">Number of method calls for this expectations</param>
1780
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.#ctor(Rhino.Mocks.Interfaces.IExpectation)">
1782
Creates a new <see cref="T:Rhino.Mocks.Expectations.AbstractExpectation"/> instance.
1784
<param name="expectation">Expectation.</param>
1786
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.DoIsExpected(System.Object[])">
1788
Validate the arguments for the method on the child methods
1790
<param name="args">The arguments with which the method was called</param>
1792
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.Equals(System.Object)">
1794
Determines if this object equal to obj
1797
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.CreateErrorMessage(System.String)">
1799
The error message for these arguments
1802
<member name="M:Rhino.Mocks.Expectations.AbstractExpectation.AssertDelegateArgumentsMatchMethod(System.Delegate)">
1804
Asserts that the delegate has the same parameters as the expectation's method call
1807
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.OutRefParams">
1809
Setter for the outpur / ref parameters for this expecataion.
1810
Can only be set once.
1813
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.HasReturnValue">
1815
Specify whether this expectation has a return value set
1816
You can't check ReturnValue for this because a valid return value include null.
1819
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.Method">
1821
Gets the method this expectation is for.
1824
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.Originalinvocation">
1826
Gets the originalInvocation for this expectation
1828
<value>The originalInvocation.</value>
1830
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.RepeatableOption">
1832
Gets or sets what special condtions there are for this method
1835
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.Expected">
1837
Range of expected calls
1840
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ActualCallsCount">
1842
Number of call actually made for this method
1845
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.CanAcceptCalls">
1847
If this expectation is still waiting for calls.
1850
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ExpectationSatisfied">
1852
Gets a value indicating whether this expectation was satisfied
1855
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ReturnValue">
1857
The return value for a method matching this expectation
1860
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ActionToExecute">
1862
An action to execute when the method is matched.
1865
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ExceptionToThrow">
1867
Gets or sets the exception to throw on a method matching this expectation.
1870
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ActionsSatisfied">
1872
Gets a value indicating whether this instance's action is staisfied.
1873
A staisfied instance means that there are no more requirements from
1874
this method. A method with non void return value must register either
1875
a return value or an exception to throw or an action to execute.
1878
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.Message">
1880
Documentation message
1883
<member name="E:Rhino.Mocks.Expectations.AbstractExpectation.WhenCalled">
1885
Occurs when the exceptation is match on a method call
1888
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.AllowTentativeReturn">
1890
Allow to set the return value in the future, if it was already set.
1893
<member name="P:Rhino.Mocks.Expectations.AbstractExpectation.ErrorMessage">
1895
Gets the error message.
1899
<member name="T:Rhino.Mocks.Expectations.AnyArgsExpectation">
1901
Expectation that matches any arguments for the method.
1904
<member name="M:Rhino.Mocks.Expectations.AnyArgsExpectation.#ctor(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Impl.Range)">
1906
Creates a new <see cref="T:Rhino.Mocks.Expectations.AnyArgsExpectation"/> instance.
1908
<param name="invocation">Invocation for this expectation</param>
1909
<param name="expectedRange">Number of method calls for this expectations</param>
1911
<member name="M:Rhino.Mocks.Expectations.AnyArgsExpectation.#ctor(Rhino.Mocks.Interfaces.IExpectation)">
1913
Creates a new <see cref="T:Rhino.Mocks.Expectations.AnyArgsExpectation"/> instance.
1915
<param name="expectation">Expectation.</param>
1917
<member name="M:Rhino.Mocks.Expectations.AnyArgsExpectation.DoIsExpected(System.Object[])">
1919
Validate the arguments for the method.
1921
<param name="args">The arguments with which the method was called</param>
1923
<member name="M:Rhino.Mocks.Expectations.AnyArgsExpectation.Equals(System.Object)">
1925
Determines if the object equal to expectation
1928
<member name="M:Rhino.Mocks.Expectations.AnyArgsExpectation.GetHashCode">
1933
<member name="P:Rhino.Mocks.Expectations.AnyArgsExpectation.ErrorMessage">
1935
Gets the error message.
1939
<member name="T:Rhino.Mocks.Expectations.ArgsEqualExpectation">
1941
Summary description for ArgsEqualExpectation.
1944
<member name="M:Rhino.Mocks.Expectations.ArgsEqualExpectation.#ctor(Castle.Core.Interceptor.IInvocation,System.Object[],Rhino.Mocks.Impl.Range)">
1946
Creates a new <see cref="T:Rhino.Mocks.Expectations.ArgsEqualExpectation"/> instance.
1948
<param name="expectedArgs">Expected args.</param>
1949
<param name="invocation">The invocation for this expectation</param>
1950
<param name="expectedRange">Number of method calls for this expectations</param>
1952
<member name="M:Rhino.Mocks.Expectations.ArgsEqualExpectation.DoIsExpected(System.Object[])">
1954
Validate the arguments for the method.
1956
<param name="args">The arguments with which the method was called</param>
1958
<member name="M:Rhino.Mocks.Expectations.ArgsEqualExpectation.Equals(System.Object)">
1960
Determines if the object equal to expectation
1963
<member name="M:Rhino.Mocks.Expectations.ArgsEqualExpectation.GetHashCode">
1968
<member name="P:Rhino.Mocks.Expectations.ArgsEqualExpectation.ErrorMessage">
1970
Gets the error message.
1974
<member name="P:Rhino.Mocks.Expectations.ArgsEqualExpectation.ExpectedArgs">
1976
Get the expected args.
1979
<member name="T:Rhino.Mocks.Expectations.CallbackExpectation">
1981
Call a specified callback to verify the expectation
1984
<member name="M:Rhino.Mocks.Expectations.CallbackExpectation.#ctor(Rhino.Mocks.Interfaces.IExpectation,System.Delegate)">
1986
Creates a new <see cref="T:Rhino.Mocks.Expectations.CallbackExpectation"/> instance.
1988
<param name="expectation">Expectation.</param>
1989
<param name="callback">Callback.</param>
1991
<member name="M:Rhino.Mocks.Expectations.CallbackExpectation.#ctor(Castle.Core.Interceptor.IInvocation,System.Delegate,Rhino.Mocks.Impl.Range)">
1993
Creates a new <see cref="T:Rhino.Mocks.Expectations.CallbackExpectation"/> instance.
1995
<param name="invocation">Invocation for this expectation</param>
1996
<param name="callback">Callback.</param>
1997
<param name="expectedRange">Number of method calls for this expectations</param>
1999
<member name="M:Rhino.Mocks.Expectations.CallbackExpectation.DoIsExpected(System.Object[])">
2001
Validate the arguments for the method on the child methods
2003
<param name="args">The arguments with which the method was called</param>
2005
<member name="M:Rhino.Mocks.Expectations.CallbackExpectation.Equals(System.Object)">
2007
Determines if the object equal to expectation
2010
<member name="M:Rhino.Mocks.Expectations.CallbackExpectation.GetHashCode">
2015
<member name="P:Rhino.Mocks.Expectations.CallbackExpectation.ErrorMessage">
2017
Gets the error message.
2021
<member name="T:Rhino.Mocks.Expectations.ConstraintsExpectation">
2023
Expect the method's arguments to match the contraints
2026
<member name="M:Rhino.Mocks.Expectations.ConstraintsExpectation.#ctor(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Constraints.AbstractConstraint[],Rhino.Mocks.Impl.Range)">
2028
Creates a new <see cref="T:Rhino.Mocks.Expectations.ConstraintsExpectation"/> instance.
2030
<param name="invocation">Invocation for this expectation</param>
2031
<param name="constraints">Constraints.</param>
2032
<param name="expectedRange">Number of method calls for this expectations</param>
2034
<member name="M:Rhino.Mocks.Expectations.ConstraintsExpectation.#ctor(Rhino.Mocks.Interfaces.IExpectation,Rhino.Mocks.Constraints.AbstractConstraint[])">
2036
Creates a new <see cref="T:Rhino.Mocks.Expectations.ConstraintsExpectation"/> instance.
2038
<param name="expectation">Expectation.</param>
2039
<param name="constraints">Constraints.</param>
2041
<member name="M:Rhino.Mocks.Expectations.ConstraintsExpectation.DoIsExpected(System.Object[])">
2043
Validate the arguments for the method.
2045
<param name="args">The arguments with which the method was called</param>
2047
<member name="M:Rhino.Mocks.Expectations.ConstraintsExpectation.Equals(System.Object)">
2049
Determines if the object equal to expectation
2052
<member name="M:Rhino.Mocks.Expectations.ConstraintsExpectation.GetHashCode">
2057
<member name="P:Rhino.Mocks.Expectations.ConstraintsExpectation.ErrorMessage">
2059
Gets the error message.
2063
<member name="T:Rhino.Mocks.Impl.NullLogger">
2065
Doesn't log anything, just makes happy noises
2068
<member name="T:Rhino.Mocks.Interfaces.IExpectationLogger">
2070
Log expectations - allows to see what is going on inside Rhino Mocks
2073
<member name="M:Rhino.Mocks.Interfaces.IExpectationLogger.LogRecordedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2075
Logs the expectation as is was recorded
2077
<param name="invocation">The invocation.</param>
2078
<param name="expectation">The expectation.</param>
2080
<member name="M:Rhino.Mocks.Interfaces.IExpectationLogger.LogReplayedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2082
Logs the expectation as it was recorded
2084
<param name="invocation">The invocation.</param>
2085
<param name="expectation">The expectation.</param>
2087
<member name="M:Rhino.Mocks.Interfaces.IExpectationLogger.LogUnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.String)">
2089
Logs the unexpected method call.
2091
<param name="invocation">The invocation.</param>
2092
<param name="message">The message.</param>
2094
<member name="M:Rhino.Mocks.Impl.NullLogger.LogRecordedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2096
Logs the expectation as is was recorded
2098
<param name="invocation">The invocation.</param>
2099
<param name="expectation">The expectation.</param>
2101
<member name="M:Rhino.Mocks.Impl.NullLogger.LogReplayedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2103
Logs the expectation as it was recorded
2105
<param name="invocation">The invocation.</param>
2106
<param name="expectation">The expectation.</param>
2108
<member name="M:Rhino.Mocks.Impl.NullLogger.LogUnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.String)">
2110
Logs the unexpected method call.
2112
<param name="invocation">The invocation.</param>
2113
<param name="message">The message.</param>
2115
<member name="T:Rhino.Mocks.Impl.RemotingMock.IRemotingProxyOperation">
2117
Operation on a remoting proxy
2120
It is not possible to directly communicate to a real proxy via transparent proxy.
2121
Transparent proxy impersonates a user type and only methods of that user type are callable.
2122
The only methods that are guaranteed to exist on any transparent proxy are methods defined
2123
in Object: namely ToString(), GetHashCode(), and Equals()).
2125
These three methods are the only way to tell the real proxy to do something.
2126
Equals() is the most suitable of all, since it accepts an arbitrary object parameter.
2127
The RemotingProxy code is built so that if it is compared to an IRemotingProxyOperation,
2128
transparentProxy.Equals(operation) will call operation.Process(realProxy).
2129
This way we can retrieve a real proxy from transparent proxy and perform
2130
arbitrary operation on it.
2133
<member name="T:Rhino.Mocks.Impl.RemotingMock.RemotingMockGenerator">
2135
Generates remoting proxies and provides utility functions
2138
<member name="M:Rhino.Mocks.Impl.RemotingMock.RemotingMockGenerator.CreateRemotingMock(System.Type,Castle.Core.Interceptor.IInterceptor,Rhino.Mocks.Interfaces.IMockedObject)">
2140
Create the proxy using remoting
2143
<member name="M:Rhino.Mocks.Impl.RemotingMock.RemotingMockGenerator.IsRemotingProxy(System.Object)">
2145
Check whether an object is a transparent proxy with a RemotingProxy behind it
2147
<param name="obj">Object to check</param>
2148
<returns>true if the object is a transparent proxy with a RemotingProxy instance behind it, false otherwise</returns>
2149
<remarks>We use Equals() method to communicate with the real proxy behind the object.
2150
See IRemotingProxyOperation for more details</remarks>
2152
<member name="M:Rhino.Mocks.Impl.RemotingMock.RemotingMockGenerator.GetMockedObjectFromProxy(System.Object)">
2154
Retrieve a mocked object from a transparent proxy
2156
<param name="proxy">Transparent proxy with a RemotingProxy instance behind it</param>
2157
<returns>Mocked object associated with the proxy</returns>
2158
<remarks>We use Equals() method to communicate with the real proxy behind the object.
2159
See IRemotingProxyOperation for more details</remarks>
2161
<member name="T:Rhino.Mocks.Impl.RemotingMock.RemotingInvocation">
2163
Implementation of IInvocation based on remoting proxy
2165
<remarks>Some methods are marked NotSupported since they either don't make sense
2166
for remoting proxies, or they are never called by Rhino Mocks</remarks>
2168
<member name="T:Rhino.Mocks.Impl.TextWriterExpectationLogger">
2170
Rudimetry implementation that simply logs methods calls as text.
2173
<member name="M:Rhino.Mocks.Impl.TextWriterExpectationLogger.#ctor(System.IO.TextWriter)">
2175
Initializes a new instance of the <see cref="T:Rhino.Mocks.Impl.TextWriterExpectationLogger"/> class.
2177
<param name="writer">The writer.</param>
2179
<member name="M:Rhino.Mocks.Impl.TextWriterExpectationLogger.LogRecordedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2181
Logs the expectation as it was recorded
2183
<param name="invocation">The invocation.</param>
2184
<param name="expectation">The expectation.</param>
2186
<member name="M:Rhino.Mocks.Impl.TextWriterExpectationLogger.LogReplayedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2188
Logs the expectation as it was recorded
2190
<param name="invocation">The invocation.</param>
2191
<param name="expectation">The expectation.</param>
2193
<member name="M:Rhino.Mocks.Impl.TextWriterExpectationLogger.LogUnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.String)">
2195
Logs the unexpected method call.
2197
<param name="invocation">The invocation.</param>
2198
<param name="message">The message.</param>
2200
<member name="T:Rhino.Mocks.Impl.StubRecordMockState">
2202
Behave like a stub, all properties and events acts normally, methods calls
2203
return default values by default (but can use expectations to set them up), etc.
2206
<member name="T:Rhino.Mocks.Impl.RecordMockState">
2208
Records all the expectations for a mock
2211
<member name="T:Rhino.Mocks.Interfaces.IMockState">
2213
Different actions on this mock
2216
<member name="M:Rhino.Mocks.Interfaces.IMockState.MethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
2218
Add a method call for this state' mock.
2220
<param name="invocation">The invocation for this method</param>
2221
<param name="method">The method that was called</param>
2222
<param name="args">The arguments this method was called with</param>
2224
<member name="M:Rhino.Mocks.Interfaces.IMockState.Verify">
2226
Verify that this mock expectations have passed.
2229
<member name="M:Rhino.Mocks.Interfaces.IMockState.Replay">
2231
Verify that we can move to replay state and move
2235
<member name="M:Rhino.Mocks.Interfaces.IMockState.BackToRecord">
2237
Gets a mock state that match the original mock state of the object.
2240
<member name="M:Rhino.Mocks.Interfaces.IMockState.GetLastMethodOptions``1">
2242
Get the options for the last method call
2245
<member name="M:Rhino.Mocks.Interfaces.IMockState.SetExceptionToThrowOnVerify(System.Exception)">
2247
Set the exception to throw when Verify is called.
2248
This is used to report exception that may have happened but where caught in the code.
2249
This way, they are reported anyway when Verify() is called.
2252
<member name="M:Rhino.Mocks.Interfaces.IMockState.NotifyCallOnPropertyBehavior">
2254
This method is called to indicate that a property behavior call.
2255
This is done so we generate good error message in the common case of people using
2256
Stubbed properties with Return().
2259
<member name="P:Rhino.Mocks.Interfaces.IMockState.VerifyState">
2261
Gets the matching verify state for this state
2264
<member name="P:Rhino.Mocks.Interfaces.IMockState.LastMethodOptions">
2266
Get the options for the last method call
2269
<member name="M:Rhino.Mocks.Impl.RecordMockState.GetLastMethodOptions``1">
2271
Get the options for the last method call
2274
<member name="M:Rhino.Mocks.Impl.RecordMockState.SetExceptionToThrowOnVerify(System.Exception)">
2276
Set the exception to throw when Verify is called.
2277
This is used to report exception that may have happened but where caught in the code.
2278
This way, they are reported anyway when Verify() is called.
2281
<member name="M:Rhino.Mocks.Impl.RecordMockState.NotifyCallOnPropertyBehavior">
2283
This method is called to indicate that a property behavior call.
2284
This is done so we generate good error message in the common case of people using
2285
Stubbed properties with Return().
2288
<member name="M:Rhino.Mocks.Impl.RecordMockState.#ctor(Rhino.Mocks.Interfaces.IMockedObject,Rhino.Mocks.MockRepository)">
2290
Creates a new <see cref="T:Rhino.Mocks.Impl.RecordMockState"/> instance.
2292
<param name="repository">Repository.</param>
2293
<param name="mockedObject">The proxy that generates the method calls</param>
2295
<member name="M:Rhino.Mocks.Impl.RecordMockState.MethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
2297
Add a method call for this state' mock.
2299
<param name="invocation">The invocation for this method</param>
2300
<param name="method">The method that was called</param>
2301
<param name="args">The arguments this method was called with</param>
2303
<member name="M:Rhino.Mocks.Impl.RecordMockState.Replay">
2305
Verify that we can move to replay state and move
2309
<member name="M:Rhino.Mocks.Impl.RecordMockState.DoReplay">
2311
Verify that we can move to replay state and move
2315
<member name="M:Rhino.Mocks.Impl.RecordMockState.Verify">
2317
Verify that this mock expectations have passed.
2320
<member name="M:Rhino.Mocks.Impl.RecordMockState.BackToRecord">
2322
Gets a mock state that match the original mock state of the object.
2325
<member name="M:Rhino.Mocks.Impl.RecordMockState.AssertPreviousMethodIsClose">
2327
Asserts the previous method is closed (had an expectation set on it so we can replay it correctly)
2330
<member name="M:Rhino.Mocks.Impl.RecordMockState.GetDefaultCallCountRangeExpectation">
2332
Get the default call count range expectation
2336
<member name="P:Rhino.Mocks.Impl.RecordMockState.LastExpectation">
2338
Gets the last expectation.
2341
<member name="P:Rhino.Mocks.Impl.RecordMockState.MethodCallsCount">
2343
Gets the total method calls count.
2346
<member name="P:Rhino.Mocks.Impl.RecordMockState.LastMethodOptions">
2348
Get the options for the last method call
2351
<member name="P:Rhino.Mocks.Impl.RecordMockState.VerifyState">
2353
Gets the matching verify state for this state
2356
<member name="M:Rhino.Mocks.Impl.StubRecordMockState.#ctor(Rhino.Mocks.Interfaces.IMockedObject,Rhino.Mocks.MockRepository)">
2358
Initializes a new instance of the <see cref="T:Rhino.Mocks.Impl.StubRecordMockState"/> class.
2360
<param name="mockedObject">The proxy that generates the method calls</param>
2361
<param name="repository">Repository.</param>
2363
<member name="M:Rhino.Mocks.Impl.StubRecordMockState.AssertPreviousMethodIsClose">
2365
We don't care much about expectations here, so we will remove the expectation if
2369
<member name="M:Rhino.Mocks.Impl.StubRecordMockState.Replay">
2371
Verify that we can move to replay state and move
2376
<member name="M:Rhino.Mocks.Impl.StubRecordMockState.GetDefaultCallCountRangeExpectation">
2378
Get the default call count range expectation
2382
<member name="T:Rhino.Mocks.Impl.StubReplayMockState">
2384
Validate expectations on recorded methods, but in general completely ignoring them.
2385
Similar to <seealso cref="T:Rhino.Mocks.Impl.ReplayDynamicMockState"/> except that it would return a
2386
<seealso cref="T:Rhino.Mocks.Impl.StubRecordMockState"/> when BackToRecord is called.
2389
<member name="T:Rhino.Mocks.Impl.ReplayMockState">
2391
Validate all expectations on a mock
2394
<member name="F:Rhino.Mocks.Impl.ReplayMockState.repository">
2396
The repository for this state
2399
<member name="F:Rhino.Mocks.Impl.ReplayMockState.proxy">
2401
The proxy object for this state
2404
<member name="M:Rhino.Mocks.Impl.ReplayMockState.GetLastMethodOptions``1">
2406
Get the options for the last method call
2409
<member name="M:Rhino.Mocks.Impl.ReplayMockState.#ctor(Rhino.Mocks.Impl.RecordMockState)">
2411
Creates a new <see cref="T:Rhino.Mocks.Impl.ReplayMockState"/> instance.
2413
<param name="previousState">The previous state for this method</param>
2415
<member name="M:Rhino.Mocks.Impl.ReplayMockState.MethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
2417
Add a method call for this state' mock.
2419
<param name="invocation">The invocation for this method</param>
2420
<param name="method">The method that was called</param>
2421
<param name="args">The arguments this method was called with</param>
2423
<member name="M:Rhino.Mocks.Impl.ReplayMockState.DoMethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
2425
Add a method call for this state' mock.
2426
This allows derived method to cleanly get a the setupresult behavior while adding
2429
<param name="invocation">The invocation for this method</param>
2430
<param name="method">The method that was called</param>
2431
<param name="args">The arguments this method was called with</param>
2433
<member name="M:Rhino.Mocks.Impl.ReplayMockState.SetExceptionToThrowOnVerify(System.Exception)">
2435
Set the exception to throw when Verify is called.
2436
This is used to report exception that may have happened but where caught in the code.
2437
This way, they are reported anyway when Verify() is called.
2440
<member name="M:Rhino.Mocks.Impl.ReplayMockState.NotifyCallOnPropertyBehavior">
2445
<member name="M:Rhino.Mocks.Impl.ReplayMockState.Verify">
2447
Verify that this mock expectations have passed.
2450
<member name="M:Rhino.Mocks.Impl.ReplayMockState.Replay">
2452
Verify that we can move to replay state and move
2456
<member name="M:Rhino.Mocks.Impl.ReplayMockState.BackToRecord">
2458
Gets a mock state that match the original mock state of the object.
2461
<member name="P:Rhino.Mocks.Impl.ReplayMockState.LastMethodOptions">
2463
Get the options for the last method call
2466
<member name="P:Rhino.Mocks.Impl.ReplayMockState.VerifyState">
2468
Gets the matching verify state for this state
2471
<member name="M:Rhino.Mocks.Impl.StubReplayMockState.#ctor(Rhino.Mocks.Impl.RecordMockState)">
2473
Initializes a new instance of the <see cref="T:Rhino.Mocks.Impl.StubReplayMockState"/> class.
2475
<param name="previousState">The previous state for this method</param>
2477
<member name="M:Rhino.Mocks.Impl.StubReplayMockState.DoMethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
2479
Add a method call for this state' mock.
2481
<param name="invocation">The invocation for this method</param>
2482
<param name="method">The method that was called</param>
2483
<param name="args">The arguments this method was called with</param>
2485
<member name="M:Rhino.Mocks.Impl.StubReplayMockState.BackToRecord">
2487
Gets a mock state that matches the original mock state of the object.
2490
<member name="T:Rhino.Mocks.Impl.TraceWriterExpectationLogger">
2492
Write rhino mocks log info to the trace
2495
<member name="M:Rhino.Mocks.Impl.TraceWriterExpectationLogger.#ctor">
2497
Initializes a new instance of the <see cref="T:Rhino.Mocks.Impl.TraceWriterExpectationLogger"/> class.
2500
<member name="M:Rhino.Mocks.Impl.TraceWriterExpectationLogger.#ctor(System.Boolean,System.Boolean,System.Boolean)">
2502
Initializes a new instance of the <see cref="T:Rhino.Mocks.Impl.TraceWriterExpectationLogger"/> class.
2504
<param name="logRecorded">if set to <c>true</c> [log recorded].</param>
2505
<param name="logReplayed">if set to <c>true</c> [log replayed].</param>
2506
<param name="logUnexpected">if set to <c>true</c> [log unexpected].</param>
2508
<member name="M:Rhino.Mocks.Impl.TraceWriterExpectationLogger.LogRecordedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2510
Logs the expectation as is was recorded
2512
<param name="invocation">The invocation.</param>
2513
<param name="expectation">The expectation.</param>
2515
<member name="M:Rhino.Mocks.Impl.TraceWriterExpectationLogger.LogReplayedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2517
Logs the expectation as it was recorded
2519
<param name="invocation">The invocation.</param>
2520
<param name="expectation">The expectation.</param>
2522
<member name="M:Rhino.Mocks.Impl.TraceWriterExpectationLogger.LogUnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.String)">
2524
Logs the unexpected method call.
2526
<param name="invocation">The invocation.</param>
2527
<param name="message">The message.</param>
2529
<member name="T:Rhino.Mocks.Impl.TraceWriterWithStackTraceExpectationWriter">
2531
Writes log information as stack traces about rhino mocks activity
2534
<member name="F:Rhino.Mocks.Impl.TraceWriterWithStackTraceExpectationWriter.AlternativeWriter">
2536
Allows to redirect output to a different location.
2539
<member name="M:Rhino.Mocks.Impl.TraceWriterWithStackTraceExpectationWriter.LogRecordedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2541
Logs the expectation as is was recorded
2543
<param name="invocation">The invocation.</param>
2544
<param name="expectation">The expectation.</param>
2546
<member name="M:Rhino.Mocks.Impl.TraceWriterWithStackTraceExpectationWriter.LogReplayedExpectation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Interfaces.IExpectation)">
2548
Logs the expectation as it was recorded
2550
<param name="invocation">The invocation.</param>
2551
<param name="expectation">The expectation.</param>
2553
<member name="M:Rhino.Mocks.Impl.TraceWriterWithStackTraceExpectationWriter.LogUnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.String)">
2555
Logs the unexpected method call.
2557
<param name="invocation">The invocation.</param>
2558
<param name="message">The message.</param>
2560
<member name="T:Rhino.Mocks.Interfaces.IPartialMockMarker">
2562
Marker interface used to indicate that this is a partial mock.
2565
<member name="T:Rhino.Mocks.Interfaces.OriginalCallOptions">
2567
Options for CallOriginalMethod
2570
<member name="F:Rhino.Mocks.Interfaces.OriginalCallOptions.NoExpectation">
2572
No expectation is created, the method will be called directly
2575
<member name="F:Rhino.Mocks.Interfaces.OriginalCallOptions.CreateExpectation">
2577
Normal expectation is created, but when the method is later called, it will also call the original method
2580
<member name="T:Rhino.Mocks.MethodInvocation">
2582
This is a data structure that is used by
2583
<seealso cref="M:Rhino.Mocks.Interfaces.IMethodOptions`1.WhenCalled(System.Action{Rhino.Mocks.MethodInvocation})"/> to pass
2584
the current method to the relevant delegate
2587
<member name="M:Rhino.Mocks.MethodInvocation.#ctor(Castle.Core.Interceptor.IInvocation)">
2589
Initializes a new instance of the <see cref="T:Rhino.Mocks.MethodInvocation"/> class.
2591
<param name="invocation">The invocation.</param>
2593
<member name="P:Rhino.Mocks.MethodInvocation.Arguments">
2595
Gets the args for this method invocation
2598
<member name="P:Rhino.Mocks.MethodInvocation.Method">
2600
Get the method that was caused this invocation
2603
<member name="P:Rhino.Mocks.MethodInvocation.ReturnValue">
2605
Gets or sets the return value for this method invocation
2607
<value>The return value.</value>
2609
<member name="T:Rhino.Mocks.MockRepository">
2611
Adds optional new usage:
2612
using(mockRepository.Record()) {
2613
Expect.Call(mock.Method()).Return(retVal);
2615
using(mockRepository.Playback()) {
2618
N.B. mockRepository.ReplayAll() and mockRepository.VerifyAll()
2619
calls are taken care of by Record/Playback
2622
Creates proxied instances of types.
2625
<member name="M:Rhino.Mocks.MockRepository.GenerateStub``1(System.Object[])">
2626
<summary>Generates a stub without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2627
<param name="argumentsForConstructor">Arguments for <typeparamref name="T"/>'s constructor</param>
2628
<typeparam name="T">The <see cref="T:System.Type"/> of stub to create.</typeparam>
2629
<returns>The stub</returns>
2630
<seealso cref="M:Rhino.Mocks.MockRepository.Stub``1(System.Object[])"/>
2632
<member name="M:Rhino.Mocks.MockRepository.GenerateStub(System.Type,System.Object[])">
2633
<summary>Generates a stub without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2634
<param name="type">The <see cref="T:System.Type"/> of stub.</param>
2635
<param name="argumentsForConstructor">Arguments for the <paramref name="type"/>'s constructor.</param>
2636
<returns>The stub</returns>
2637
<seealso cref="M:Rhino.Mocks.MockRepository.Stub(System.Type,System.Object[])"/>
2639
<member name="M:Rhino.Mocks.MockRepository.GenerateMock``1(System.Object[])">
2640
<summary>Generate a mock object without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2641
<typeparam name="T">type <see cref="T:System.Type"/> of mock object to create.</typeparam>
2642
<param name="argumentsForConstructor">Arguments for <typeparamref name="T"/>'s constructor</param>
2643
<returns>the mock object</returns>
2644
<seealso cref="M:Rhino.Mocks.MockRepository.DynamicMock``1(System.Object[])"/>
2646
<member name="M:Rhino.Mocks.MockRepository.GenerateMock``2(System.Object[])">
2647
<summary>Generate a multi-mock object without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2648
<typeparam name="T">The <c>typeof</c> object to generate a mock for.</typeparam>
2649
<typeparam name="TMultiMockInterface1">A second interface to generate a multi-mock for.</typeparam>
2650
<param name="argumentsForConstructor">Arguments for <typeparamref name="T"/>'s constructor</param>
2651
<returns>the multi-mock object</returns>
2652
<seealso cref="M:Rhino.Mocks.MockRepository.DynamicMultiMock(System.Type,System.Type[],System.Object[])"/>
2654
<member name="M:Rhino.Mocks.MockRepository.GenerateMock``3(System.Object[])">
2655
<summary>Generate a multi-mock object without without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2656
<typeparam name="T">The <c>typeof</c> object to generate a mock for.</typeparam>
2657
<typeparam name="TMultiMockInterface1">An interface to generate a multi-mock for.</typeparam>
2658
<typeparam name="TMultiMockInterface2">A second interface to generate a multi-mock for.</typeparam>
2659
<param name="argumentsForConstructor">Arguments for <typeparamref name="T"/>'s constructor</param>
2660
<returns>the multi-mock object</returns>
2661
<seealso cref="M:Rhino.Mocks.MockRepository.DynamicMultiMock(System.Type,System.Type[],System.Object[])"/>
2663
<member name="M:Rhino.Mocks.MockRepository.GenerateMock(System.Type,System.Type[],System.Object[])">
2664
<summary>Creates a multi-mock without without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2665
<param name="type">The type of mock to create, this can be a class</param>
2666
<param name="extraTypes">Any extra interfaces to add to the multi-mock, these can only be interfaces.</param>
2667
<param name="argumentsForConstructor">Arguments for <paramref name="type"/>'s constructor</param>
2668
<returns>the multi-mock object</returns>
2669
<seealso cref="M:Rhino.Mocks.MockRepository.DynamicMultiMock(System.Type,System.Type[],System.Object[])"/>
2671
<member name="M:Rhino.Mocks.MockRepository.GenerateStrictMock``1(System.Object[])">
2672
<summary>Creates a strict mock without without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2673
<param name="argumentsForConstructor">Any arguments required for the <typeparamref name="T"/>'s constructor</param>
2674
<typeparam name="T">The type of mock object to create.</typeparam>
2675
<returns>The mock object with strict replay semantics</returns>
2676
<seealso cref="M:Rhino.Mocks.MockRepository.StrictMock``1(System.Object[])"/>
2678
<member name="M:Rhino.Mocks.MockRepository.GenerateStrictMock``2(System.Object[])">
2679
<summary>Creates a strict multi-mock without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2680
<param name="argumentsForConstructor">Any arguments required for the <typeparamref name="T"/>'s constructor</param>
2681
<typeparam name="T">The type of mock object to create, this can be a class.</typeparam>
2682
<typeparam name="TMultiMockInterface1">An interface to generate a multi-mock for, this must be an interface!</typeparam>
2683
<returns>The multi-mock object with strict replay semantics</returns>
2684
<seealso cref="M:Rhino.Mocks.MockRepository.StrictMultiMock(System.Type,System.Type[],System.Object[])"/>
2686
<member name="M:Rhino.Mocks.MockRepository.GenerateStrictMock``3(System.Object[])">
2687
<summary>Creates a strict multi-mock without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2688
<param name="argumentsForConstructor">Any arguments required for the <typeparamref name="T"/>'s constructor</param>
2689
<typeparam name="T">The type of mock object to create, this can be a class.</typeparam>
2690
<typeparam name="TMultiMockInterface1">An interface to generate a multi-mock for, this must be an interface!</typeparam>
2691
<typeparam name="TMultiMockInterface2">A second interface to generate a multi-mock for, this must be an interface!</typeparam>
2692
<returns>The multi-mock object with strict replay semantics</returns>
2693
<seealso cref="M:Rhino.Mocks.MockRepository.StrictMultiMock(System.Type,System.Type[],System.Object[])"/>
2695
<member name="M:Rhino.Mocks.MockRepository.GenerateStrictMock(System.Type,System.Type[],System.Object[])">
2696
<summary>Creates a strict multi-mock without needing a <see cref="T:Rhino.Mocks.MockRepository"/></summary>
2697
<param name="type">The type of mock object to create, this can be a class</param>
2698
<param name="extraTypes">Any extra interfaces to generate a multi-mock for, these must be interaces!</param>
2699
<param name="argumentsForConstructor">Any arguments for the <paramref name="type"/>'s constructor</param>
2700
<returns>The strict multi-mock object</returns>
2701
<seealso cref="M:Rhino.Mocks.MockRepository.StrictMultiMock(System.Type,System.Type[],System.Object[])"/>
2703
<member name="M:Rhino.Mocks.MockRepository.GeneratePartialMock``1(System.Object[])">
2706
<param name="argumentsForConstructor"></param>
2707
<typeparam name="T"></typeparam>
2710
<member name="M:Rhino.Mocks.MockRepository.GeneratePartialMock``2(System.Object[])">
2713
<param name="argumentsForConstructor"></param>
2714
<typeparam name="T"></typeparam>
2715
<typeparam name="TMultiMockInterface1"></typeparam>
2718
<member name="M:Rhino.Mocks.MockRepository.GeneratePartialMock``3(System.Object[])">
2721
<param name="argumentsForConstructor"></param>
2722
<typeparam name="T"></typeparam>
2723
<typeparam name="TMultiMockInterface1"></typeparam>
2724
<typeparam name="TMultiMockInterface2"></typeparam>
2727
<member name="M:Rhino.Mocks.MockRepository.GeneratePartialMock(System.Type,System.Type[],System.Object[])">
2730
<param name="type"></param>
2731
<param name="extraTypes"></param>
2732
<param name="argumentsForConstructor"></param>
2735
<member name="M:Rhino.Mocks.MockRepository.GenerateDynamicMockWithRemoting``1(System.Object[])">
2737
Generate a mock object with dynamic replay semantics and remoting without needing the mock repository
2740
<member name="M:Rhino.Mocks.MockRepository.GenerateStrictMockWithRemoting``1(System.Object[])">
2742
Generate a mock object with strict replay semantics and remoting without needing the mock repository
2745
<member name="M:Rhino.Mocks.MockRepository.CreateMockInReplay``1(System.Func{Rhino.Mocks.MockRepository,``0})">
2746
<summary>Helper method to create a mock object without a repository instance and put the object back into replay mode.</summary>
2747
<typeparam name="T">The type of mock object to create</typeparam>
2748
<param name="createMock">A delegate that uses a mock repository instance to create the underlying mock</param>
2749
<returns>The mock object in the replay mode.</returns>
2751
<member name="M:Rhino.Mocks.MockRepository.Record">
2756
<member name="M:Rhino.Mocks.MockRepository.Playback">
2761
<member name="F:Rhino.Mocks.MockRepository.generatorMap">
2763
This is a map of types to ProxyGenerators.
2766
<member name="F:Rhino.Mocks.MockRepository.lastRepository">
2768
This is used to record the last repository that has a method called on it.
2771
<member name="F:Rhino.Mocks.MockRepository.lastMockedObject">
2773
this is used to get to the last proxy on this repository.
2776
<member name="F:Rhino.Mocks.MockRepository.delegateProxies">
2778
For mock delegates, maps the proxy instance from intercepted invocations
2779
back to the delegate that was originally returned to client code, if any.
2782
<member name="F:Rhino.Mocks.MockRepository.proxies">
2784
All the proxies in the mock repositories
2787
<member name="F:Rhino.Mocks.MockRepository.repeatableMethods">
2789
This is here because we can't put it in any of the recorders, since repeatable methods
2790
have no orderring, and if we try to handle them using the usual manner, we would get into
2791
wierd situations where repeatable method that was defined in an orderring block doesn't
2792
exists until we enter this block.
2795
<member name="M:Rhino.Mocks.MockRepository.#ctor">
2797
Creates a new <see cref="T:Rhino.Mocks.MockRepository"/> instance.
2800
<member name="M:Rhino.Mocks.MockRepository.Ordered">
2802
Move the repository to ordered mode
2805
<member name="M:Rhino.Mocks.MockRepository.Unordered">
2807
Move the repository to un-ordered mode
2810
<member name="M:Rhino.Mocks.MockRepository.CreateMock(System.Type,System.Object[])">
2812
Creates a mock for the specified type.
2814
<param name="type">Type.</param>
2815
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2817
<member name="M:Rhino.Mocks.MockRepository.StrictMock(System.Type,System.Object[])">
2819
Creates a strict mock for the specified type.
2821
<param name="type">Type.</param>
2822
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2824
<member name="M:Rhino.Mocks.MockRepository.CreateMockWithRemoting(System.Type,System.Object[])">
2826
Creates a remoting mock for the specified type.
2828
<param name="type">Type.</param>
2829
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2831
<member name="M:Rhino.Mocks.MockRepository.StrictMockWithRemoting(System.Type,System.Object[])">
2833
Creates a strict remoting mock for the specified type.
2835
<param name="type">Type.</param>
2836
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2838
<member name="M:Rhino.Mocks.MockRepository.CreateMockWithRemoting``1(System.Object[])">
2840
Creates a remoting mock for the specified type.
2842
<typeparam name="T"></typeparam>
2843
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2846
<member name="M:Rhino.Mocks.MockRepository.StrictMockWithRemoting``1(System.Object[])">
2848
Creates a strict remoting mock for the specified type.
2850
<typeparam name="T"></typeparam>
2851
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2854
<member name="M:Rhino.Mocks.MockRepository.CreateMultiMock(System.Type,System.Type[])">
2856
Creates a mock from several types, with strict semantics.
2857
Only <paramref name="mainType"/> may be a class.
2860
<member name="M:Rhino.Mocks.MockRepository.StrictMultiMock(System.Type,System.Type[])">
2862
Creates a strict mock from several types, with strict semantics.
2863
Only <paramref name="mainType"/> may be a class.
2866
<member name="M:Rhino.Mocks.MockRepository.CreateMultiMock(System.Type,System.Type[],System.Object[])">
2868
Creates a mock from several types, with strict semantics.
2869
Only <paramref name="mainType"/> may be a class.
2871
<param name="mainType">The main type to mock.</param>
2872
<param name="extraTypes">Extra interface types to mock.</param>
2873
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class.</param>
2875
<member name="M:Rhino.Mocks.MockRepository.StrictMultiMock(System.Type,System.Type[],System.Object[])">
2877
Creates a strict mock from several types, with strict semantics.
2878
Only <paramref name="mainType"/> may be a class.
2880
<param name="mainType">The main type to mock.</param>
2881
<param name="extraTypes">Extra interface types to mock.</param>
2882
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class.</param>
2884
<member name="M:Rhino.Mocks.MockRepository.DynamicMultiMock(System.Type,System.Type[])">
2886
Creates a mock from several types, with dynamic semantics.
2887
Only <paramref name="mainType"/> may be a class.
2889
<param name="mainType">The main type to mock.</param>
2890
<param name="extraTypes">Extra interface types to mock.</param>
2892
<member name="M:Rhino.Mocks.MockRepository.DynamicMultiMock(System.Type,System.Type[],System.Object[])">
2894
Creates a mock from several types, with dynamic semantics.
2895
Only <paramref name="mainType"/> may be a class.
2897
<param name="mainType">The main type to mock.</param>
2898
<param name="extraTypes">Extra interface types to mock.</param>
2899
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class.</param>
2901
<member name="M:Rhino.Mocks.MockRepository.DynamicMock(System.Type,System.Object[])">
2902
<summary>Creates a dynamic mock for the specified type.</summary>
2903
<param name="type">Type.</param>
2904
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2906
<member name="M:Rhino.Mocks.MockRepository.DynamicMockWithRemoting(System.Type,System.Object[])">
2907
<summary>Creates a dynamic mock for the specified type.</summary>
2908
<param name="type">Type.</param>
2909
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2911
<member name="M:Rhino.Mocks.MockRepository.DynamicMockWithRemoting``1(System.Object[])">
2912
<summary>Creates a dynamic mock for the specified type.</summary>
2913
<typeparam name="T"></typeparam>
2914
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
2917
<member name="M:Rhino.Mocks.MockRepository.PartialMock(System.Type,System.Object[])">
2918
<summary>Creates a mock object that defaults to calling the class methods if no expectation is set on the method.</summary>
2919
<param name="type">Type.</param>
2920
<param name="argumentsForConstructor">Arguments for the class' constructor.</param>
2922
<member name="M:Rhino.Mocks.MockRepository.PartialMultiMock(System.Type,System.Type[])">
2923
<summary>Creates a mock object that defaults to calling the class methods.</summary>
2924
<param name="type">Type.</param>
2925
<param name="extraTypes">Extra interface types to mock.</param>
2927
<member name="M:Rhino.Mocks.MockRepository.PartialMultiMock(System.Type,System.Type[],System.Object[])">
2928
<summary>Creates a mock object that defaults to calling the class methods.</summary>
2929
<param name="type">Type.</param>
2930
<param name="extraTypes">Extra interface types to mock.</param>
2931
<param name="argumentsForConstructor">Arguments for the class' constructor.</param>
2933
<member name="M:Rhino.Mocks.MockRepository.RemotingMock(System.Type,Rhino.Mocks.MockRepository.CreateMockState)">
2934
<summary>Creates a mock object using remoting proxies</summary>
2935
<param name="type">Type to mock - must be MarshalByRefObject</param>
2936
<returns>Mock object</returns>
2937
<remarks>Proxy mock can mock non-virtual methods, but not static methods</remarks>
2938
<param name="factory">Creates the mock state for this proxy</param>
2940
<member name="M:Rhino.Mocks.MockRepository.Replay(System.Object)">
2942
Cause the mock state to change to replay, any further call is compared to the
2943
ones that were called in the record state.
2945
<remarks>This method *cannot* be called from inside an ordering.</remarks>
2946
<param name="obj">the object to move to replay state</param>
2948
<member name="M:Rhino.Mocks.MockRepository.ReplayCore(System.Object,System.Boolean)">
2950
Cause the mock state to change to replay, any further call is compared to the
2951
ones that were called in the record state.
2953
<param name="obj">the object to move to replay state</param>
2954
<param name="checkInsideOrdering"></param>
2956
<member name="M:Rhino.Mocks.MockRepository.BackToRecord(System.Object)">
2957
<summary>Move the mocked object back to record state.<para>You can (and it's recommended) to run {Verify()} before you use this method.</para></summary>
2958
<remarks>Will delete all current expectations!</remarks>
2960
<member name="M:Rhino.Mocks.MockRepository.BackToRecord(System.Object,Rhino.Mocks.BackToRecordOptions)">
2962
Move the mocked object back to record state.
2963
Optionally, can delete all current expectations, but allows more granularity about how
2964
it would behave with regard to the object state.
2967
<member name="M:Rhino.Mocks.MockRepository.Verify(System.Object)">
2969
Verify that all the expectations for this object were fulfilled.
2971
<param name="obj">the object to verify the expectations for</param>
2973
<member name="M:Rhino.Mocks.MockRepository.LastMethodCall``1(System.Object)">
2975
Get the method options for the last call on
2978
<param name="mockedInstance">The mock object</param>
2979
<returns>Method options for the last call</returns>
2981
<member name="M:Rhino.Mocks.MockRepository.GetMockObjectFromInvocationProxy(System.Object)">
2983
Maps an invocation proxy back to the mock object instance that was originally
2984
returned to client code which might have been a delegate to this proxy.
2986
<param name="invocationProxy">The mock object proxy from the intercepted invocation</param>
2987
<returns>The mock object</returns>
2989
<member name="M:Rhino.Mocks.MockRepository.CreateMockObject(System.Type,Rhino.Mocks.MockRepository.CreateMockState,System.Type[],System.Object[])">
2990
<summary>This is provided to allow advance extention functionality, where Rhino Mocks standard functionality is not enough.</summary>
2991
<param name="type">The type to mock</param>
2992
<param name="factory">Delegate that create the first state of the mocked object (usualy the record state).</param>
2993
<param name="extras">Additional types to be implemented, this can be only interfaces </param>
2994
<param name="argumentsForConstructor">optional arguments for the constructor</param>
2997
<member name="M:Rhino.Mocks.MockRepository.GetMockedObject(System.Object)">
2999
Method: GetMockedObject
3000
Get an IProxy from a mocked object instance, or throws if the
3001
object is not a mock object.
3004
<member name="M:Rhino.Mocks.MockRepository.GetMockedObjectOrNull(System.Object)">
3006
Method: GetMockedObjectOrNull
3007
Get an IProxy from a mocked object instance, or null if the
3008
object is not a mock object.
3011
<member name="M:Rhino.Mocks.MockRepository.PopRecorder">
3012
<summary>Pops the recorder.</summary>
3014
<member name="M:Rhino.Mocks.MockRepository.PushRecorder(Rhino.Mocks.Interfaces.IMethodRecorder)">
3015
<summary>Pushes the recorder.</summary>
3016
<param name="newRecorder">New recorder.</param>
3018
<member name="M:Rhino.Mocks.MockRepository.BackToRecordAll">
3020
All the mock objects in this repository will be moved
3024
<member name="M:Rhino.Mocks.MockRepository.BackToRecordAll(Rhino.Mocks.BackToRecordOptions)">
3026
All the mock objects in this repository will be moved
3030
<member name="M:Rhino.Mocks.MockRepository.ReplayAll">
3032
Replay all the mocks from this repository
3035
<member name="M:Rhino.Mocks.MockRepository.VerifyAll">
3037
Verify all the mocks from this repository
3040
<member name="M:Rhino.Mocks.MockRepository.GetProxyGenerator(System.Type)">
3042
Gets the proxy generator for a specific type. Having a single ProxyGenerator
3043
with multiple types linearly degrades the performance so this implementation
3044
keeps one ProxyGenerator per type.
3047
<member name="M:Rhino.Mocks.MockRepository.SetExceptionToBeThrownOnVerify(System.Object,Rhino.Mocks.Exceptions.ExpectationViolationException)">
3048
<summary>Set the exception to be thrown when verified is called.</summary>
3050
<member name="M:Rhino.Mocks.MockRepository.CreateMock``1(System.Object[])">
3052
Creates a mock for the spesified type with strict mocking semantics.
3053
<para>Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.</para>
3055
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3057
<member name="M:Rhino.Mocks.MockRepository.StrictMock``1(System.Object[])">
3059
Creates a mock for the spesified type with strict mocking semantics.
3060
<para>Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.</para>
3062
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3064
<member name="M:Rhino.Mocks.MockRepository.DynamicMock``1(System.Object[])">
3066
Creates a dynamic mock for the specified type.
3068
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3070
<member name="M:Rhino.Mocks.MockRepository.CreateMultiMock``1(System.Type[])">
3072
Creates a mock object from several types.
3075
<member name="M:Rhino.Mocks.MockRepository.StrictMultiMock``1(System.Type[])">
3077
Creates a strict mock object from several types.
3080
<member name="M:Rhino.Mocks.MockRepository.DynamicMultiMock``1(System.Type[])">
3082
Create a mock object from several types with dynamic semantics.
3085
<member name="M:Rhino.Mocks.MockRepository.PartialMultiMock``1(System.Type[])">
3087
Create a mock object from several types with partial semantics.
3090
<member name="M:Rhino.Mocks.MockRepository.CreateMultiMock``1(System.Type[],System.Object[])">
3092
Create a mock object from several types with strict semantics.
3094
<param name="extraTypes">Extra interface types to mock.</param>
3095
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3097
<member name="M:Rhino.Mocks.MockRepository.StrictMultiMock``1(System.Type[],System.Object[])">
3099
Create a strict mock object from several types with strict semantics.
3101
<param name="extraTypes">Extra interface types to mock.</param>
3102
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3104
<member name="M:Rhino.Mocks.MockRepository.DynamicMultiMock``1(System.Type[],System.Object[])">
3106
Create a mock object from several types with dynamic semantics.
3108
<param name="extraTypes">Extra interface types to mock.</param>
3109
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3111
<member name="M:Rhino.Mocks.MockRepository.PartialMultiMock``1(System.Type[],System.Object[])">
3113
Create a mock object from several types with partial semantics.
3115
<param name="extraTypes">Extra interface types to mock.</param>
3116
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3118
<member name="M:Rhino.Mocks.MockRepository.PartialMock``1(System.Object[])">
3120
Create a mock object with from a class that defaults to calling the class methods
3122
<param name="argumentsForConstructor">Arguments for the class' constructor, if mocking a concrete class</param>
3124
<member name="M:Rhino.Mocks.MockRepository.Stub``1(System.Object[])">
3126
Create a stub object, one that has properties and events ready for use, and
3127
can have methods called on it. It requires an explicit step in order to create
3128
an expectation for a stub.
3130
<param name="argumentsForConstructor">The arguments for constructor.</param>
3132
<member name="M:Rhino.Mocks.MockRepository.Stub(System.Type,System.Object[])">
3134
Create a stub object, one that has properties and events ready for use, and
3135
can have methods called on it. It requires an explicit step in order to create
3136
an expectation for a stub.
3138
<param name="type">The type.</param>
3139
<param name="argumentsForConstructor">The arguments for constructor.</param>
3140
<returns>The stub</returns>
3142
<member name="M:Rhino.Mocks.MockRepository.IsInReplayMode(System.Object)">
3144
Returns true if the passed mock is currently in replay mode.
3146
<param name="mock">The mock to test.</param>
3147
<returns>True if the mock is in replay mode, false otherwise.</returns>
3149
<member name="M:Rhino.Mocks.MockRepository.IsStub(System.Object)">
3151
Determines whether the specified proxy is a stub.
3153
<param name="proxy">The proxy.</param>
3155
<member name="M:Rhino.Mocks.MockRepository.RegisterPropertyBehaviorOn(Rhino.Mocks.Interfaces.IMockedObject)">
3157
Register a call on a prperty behavior
3159
<param name="instance"></param>
3161
<member name="P:Rhino.Mocks.MockRepository.Recorder">
3167
<member name="P:Rhino.Mocks.MockRepository.Replayer">
3169
Gets the replayer for this repository.
3173
<member name="P:Rhino.Mocks.MockRepository.LastMockedObject">
3175
Gets the last proxy which had a method call.
3178
<member name="T:Rhino.Mocks.MockRepository.CreateMockState">
3180
Delegate: CreateMockState
3181
This is used internally to cleanly handle the creation of different
3185
<member name="T:Rhino.Mocks.RhinoMocksExtensions">
3187
A set of extension methods that adds Arrange Act Assert mode to Rhino Mocks
3190
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Expect``1(``0,System.Action{``0})">
3192
Create an expectation on this mock for this action to occur
3194
<typeparam name="T"></typeparam>
3195
<param name="mock">The mock.</param>
3196
<param name="action">The action.</param>
3199
<member name="M:Rhino.Mocks.RhinoMocksExtensions.BackToRecord``1(``0)">
3201
Reset all expectations on this mock object
3203
<typeparam name="T"></typeparam>
3204
<param name="mock">The mock.</param>
3206
<member name="M:Rhino.Mocks.RhinoMocksExtensions.BackToRecord``1(``0,Rhino.Mocks.BackToRecordOptions)">
3208
Reset the selected expectation on this mock object
3210
<typeparam name="T"></typeparam>
3211
<param name="mock">The mock.</param>
3212
<param name="options">The options to reset the expectations on this mock.</param>
3214
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Replay``1(``0)">
3216
Cause the mock state to change to replay, any further call is compared to the
3217
ones that were called in the record state.
3219
<param name="mock">the mocked object to move to replay state</param>
3221
<member name="M:Rhino.Mocks.RhinoMocksExtensions.GetMockRepository``1(``0)">
3223
Gets the mock repository for this specificied mock object
3225
<typeparam name="T"></typeparam>
3226
<param name="mock">The mock.</param>
3229
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Expect``2(``0,Rhino.Mocks.Function{``0,``1})">
3231
Create an expectation on this mock for this action to occur
3233
<typeparam name="T"></typeparam>
3234
<typeparam name="R"></typeparam>
3235
<param name="mock">The mock.</param>
3236
<param name="action">The action.</param>
3239
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Stub``1(``0,System.Action{``0})">
3241
Tell the mock object to perform a certain action when a matching
3243
Does not create an expectation for this method.
3245
<typeparam name="T"></typeparam>
3246
<param name="mock">The mock.</param>
3247
<param name="action">The action.</param>
3250
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Stub``2(``0,Rhino.Mocks.Function{``0,``1})">
3252
Tell the mock object to perform a certain action when a matching
3254
Does not create an expectation for this method.
3256
<typeparam name="T"></typeparam>
3257
<typeparam name="R"></typeparam>
3258
<param name="mock">The mock.</param>
3259
<param name="action">The action.</param>
3262
<member name="M:Rhino.Mocks.RhinoMocksExtensions.GetArgumentsForCallsMadeOn``1(``0,System.Action{``0})">
3264
Gets the arguments for calls made on this mock object and the method that was called
3267
<typeparam name="T"></typeparam>
3268
<param name="mock">The mock.</param>
3269
<param name="action">The action.</param>
3272
Here we will get all the arguments for all the calls made to DoSomething(int)
3274
var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
3278
<member name="M:Rhino.Mocks.RhinoMocksExtensions.GetArgumentsForCallsMadeOn``1(``0,System.Action{``0},System.Action{Rhino.Mocks.Interfaces.IMethodOptions{System.Object}})">
3280
Gets the arguments for calls made on this mock object and the method that was called
3281
in the action and matches the given constraints
3283
<typeparam name="T"></typeparam>
3284
<param name="mock">The mock.</param>
3285
<param name="action">The action.</param>
3286
<param name="setupConstraints">The setup constraints.</param>
3289
Here we will get all the arguments for all the calls made to DoSomething(int)
3291
var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
3295
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasCalled``1(``0,System.Action{``0})">
3297
Asserts that a particular method was called on this mock object
3299
<typeparam name="T"></typeparam>
3300
<param name="mock">The mock.</param>
3301
<param name="action">The action.</param>
3303
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasCalled``1(``0,System.Action{``0},System.Action{Rhino.Mocks.Interfaces.IMethodOptions{System.Object}})">
3305
Asserts that a particular method was called on this mock object that match
3306
a particular constraint set.
3308
<typeparam name="T"></typeparam>
3309
<param name="mock">The mock.</param>
3310
<param name="action">The action.</param>
3311
<param name="setupConstraints">The setup constraints.</param>
3313
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasCalled``1(``0,System.Func{``0,System.Object})">
3315
Asserts that a particular method was called on this mock object that match
3316
a particular constraint set.
3318
<typeparam name="T"></typeparam>
3319
<param name="mock">The mock.</param>
3320
<param name="action">The action.</param>
3322
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasCalled``1(``0,System.Func{``0,System.Object},System.Action{Rhino.Mocks.Interfaces.IMethodOptions{System.Object}})">
3324
Asserts that a particular method was called on this mock object that match
3325
a particular constraint set.
3327
<typeparam name="T"></typeparam>
3328
<param name="mock">The mock.</param>
3329
<param name="action">The action.</param>
3330
<param name="setupConstraints">The setup constraints.</param>
3332
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasNotCalled``1(``0,System.Action{``0})">
3334
Asserts that a particular method was NOT called on this mock object
3336
<typeparam name="T"></typeparam>
3337
<param name="mock">The mock.</param>
3338
<param name="action">The action.</param>
3340
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasNotCalled``1(``0,System.Action{``0},System.Action{Rhino.Mocks.Interfaces.IMethodOptions{System.Object}})">
3342
Asserts that a particular method was NOT called on this mock object that match
3343
a particular constraint set.
3345
<typeparam name="T"></typeparam>
3346
<param name="mock">The mock.</param>
3347
<param name="action">The action.</param>
3348
<param name="setupConstraints">The setup constraints.</param>
3350
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasNotCalled``1(``0,System.Func{``0,System.Object})">
3352
Asserts that a particular method was NOT called on this mock object
3354
<typeparam name="T"></typeparam>
3355
<param name="mock">The mock.</param>
3356
<param name="action">The action.</param>
3358
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertWasNotCalled``1(``0,System.Func{``0,System.Object},System.Action{Rhino.Mocks.Interfaces.IMethodOptions{System.Object}})">
3360
Asserts that a particular method was NOT called on this mock object
3362
<typeparam name="T"></typeparam>
3363
<param name="mock">The mock.</param>
3364
<param name="action">The action.</param>
3365
<param name="setupConstraints">The setup constraints.</param>
3367
<member name="M:Rhino.Mocks.RhinoMocksExtensions.FindAppropriteType``1(Rhino.Mocks.Interfaces.IMockedObject)">
3369
Finds the approprite implementation type of this item.
3370
This is the class or an interface outside of the rhino mocks.
3372
<param name="mockedObj">The mocked obj.</param>
3375
<member name="M:Rhino.Mocks.RhinoMocksExtensions.VerifyAllExpectations(System.Object)">
3377
Verifies all expectations on this mock object
3379
<param name="mockObject">The mock object.</param>
3381
<member name="M:Rhino.Mocks.RhinoMocksExtensions.GetEventRaiser``1(``0,System.Action{``0})">
3383
Gets the event raiser for the event that was called in the action passed
3385
<typeparam name="TEventSource">The type of the event source.</typeparam>
3386
<param name="mockObject">The mock object.</param>
3387
<param name="eventSubscription">The event subscription.</param>
3390
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Raise``1(``0,System.Action{``0},System.Object,System.EventArgs)">
3392
Raise the specified event using the passed arguments.
3393
The even is extracted from the passed labmda
3395
<typeparam name="TEventSource">The type of the event source.</typeparam>
3396
<param name="mockObject">The mock object.</param>
3397
<param name="eventSubscription">The event subscription.</param>
3398
<param name="sender">The sender.</param>
3399
<param name="args">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
3401
<member name="M:Rhino.Mocks.RhinoMocksExtensions.Raise``1(``0,System.Action{``0},System.Object[])">
3403
Raise the specified event using the passed arguments.
3404
The even is extracted from the passed labmda
3406
<typeparam name="TEventSource">The type of the event source.</typeparam>
3407
<param name="mockObject">The mock object.</param>
3408
<param name="eventSubscription">The event subscription.</param>
3409
<param name="args">The args.</param>
3411
<member name="M:Rhino.Mocks.RhinoMocksExtensions.AssertExactlySingleExpectaton``1(Rhino.Mocks.MockRepository,``0)">
3412
<summary>TODO: Make this better! It currently breaks down when mocking classes or
3413
ABC's that call other virtual methods which are getting intercepted too. I wish
3414
we could just walk Expression{Action{Action{T}} to assert only a single
3415
method is being made.
3417
The workaround is to not call foo.AssertWasCalled .. rather foo.VerifyAllExpectations()</summary>
3418
<typeparam name="T">The type of mock object</typeparam>
3419
<param name="mocks">The mock repository</param>
3420
<param name="mockToRecordExpectation">The actual mock object to assert expectations on.</param>
3422
<member name="T:Rhino.Mocks.RhinoMocksExtensions.VoidType">
3424
Fake type that disallow creating it.
3425
Should have been System.Type, but we can't use it.
3428
<member name="T:Rhino.Mocks.Utilities.GenericsUtil">
3430
Utility class for dealing with messing generics scenarios.
3433
<member name="M:Rhino.Mocks.Utilities.GenericsUtil.HasOpenGenericParam(System.Type)">
3435
There are issues with trying to get this to work correctly with open generic types, since this is an edge case,
3436
I am letting the runtime handle it.
3439
<member name="M:Rhino.Mocks.Utilities.GenericsUtil.GetRealType(System.Type,Castle.Core.Interceptor.IInvocation)">
3441
Gets the real type, including de-constructing and constructing the type of generic
3444
<param name="type">The type.</param>
3445
<param name="invocation">The invocation.</param>
3448
<member name="M:Rhino.Mocks.Utilities.GenericsUtil.ReconstructGenericType(System.Type,System.Collections.Generic.Dictionary{System.String,System.Type})">
3450
Because we need to support complex types here (simple generics were handled above) we
3451
need to be aware of the following scenarios:
3452
List[T] and List[Foo[T]]
3455
<member name="T:Rhino.Mocks.Generated.ExpectationsList">
3460
<member name="T:Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary">
3465
<member name="T:Rhino.Mocks.Generated.ProxyStateDictionary">
3470
<member name="M:Rhino.Mocks.Generated.ProxyStateDictionary.#ctor">
3472
Create a new instance of <c>ProxyStateDictionary</c>
3475
<member name="T:Rhino.Mocks.Impl.CreateMethodExpectation">
3477
Allows to call a method and immediately get it's options.
3480
<member name="T:Rhino.Mocks.Interfaces.ICreateMethodExpectation">
3482
Interface to allow calling a method and immediately get it's options.
3485
<member name="M:Rhino.Mocks.Interfaces.ICreateMethodExpectation.Call``1(``0)">
3487
Get the method options for the call
3489
<param name="ignored">The method call should go here, the return value is ignored</param>
3491
<member name="M:Rhino.Mocks.Impl.CreateMethodExpectation.#ctor(Rhino.Mocks.Interfaces.IMockedObject,System.Object)">
3493
Creates a new <see cref="T:Rhino.Mocks.Impl.CreateMethodExpectation"/> instance.
3496
<member name="M:Rhino.Mocks.Impl.CreateMethodExpectation.Call``1(``0)">
3498
Get the method options for the call
3500
<param name="ignored">The method call should go here, the return value is ignored</param>
3502
<member name="T:Rhino.Mocks.Impl.CreateMethodExpectationForSetupResult">
3504
Allows to call a method and immediately get it's options.
3505
Set the expected number for the call to Any()
3508
<member name="M:Rhino.Mocks.Impl.CreateMethodExpectationForSetupResult.#ctor(Rhino.Mocks.Interfaces.IMockedObject,System.Object)">
3510
Creates a new <see cref="T:Rhino.Mocks.Impl.CreateMethodExpectationForSetupResult"/> instance.
3512
<param name="mockedObject">Proxy.</param>
3513
<param name="mockedInstance">Mocked instance.</param>
3515
<member name="M:Rhino.Mocks.Impl.CreateMethodExpectationForSetupResult.Call``1(``0)">
3517
Get the method options for the call
3519
<param name="ignored">The method call should go here, the return value is ignored</param>
3521
<member name="T:Rhino.Mocks.Impl.DelegateTargetInterfaceCreator">
3523
This class is reponsible for taking a delegate and creating a wrapper
3524
interface around it, so it can be mocked.
3527
<member name="F:Rhino.Mocks.Impl.DelegateTargetInterfaceCreator.moduleScope">
3529
The scope for all the delegate interfaces create by this mock repository.
3532
<member name="M:Rhino.Mocks.Impl.DelegateTargetInterfaceCreator.GetDelegateTargetInterface(System.Type)">
3534
Gets a type with an "Invoke" method suitable for use as a target of the
3535
specified delegate type.
3537
<param name="delegateType"></param>
3540
<member name="T:Rhino.Mocks.Impl.EventRaiser">
3542
Raise events for all subscribers for an event
3545
<member name="T:Rhino.Mocks.Interfaces.IEventRaiser">
3547
Raise events for all subscribers for an event
3550
<member name="M:Rhino.Mocks.Interfaces.IEventRaiser.Raise(System.Object[])">
3555
<member name="M:Rhino.Mocks.Interfaces.IEventRaiser.Raise(System.Object,System.EventArgs)">
3557
The most common form for the event handler signature
3560
<member name="M:Rhino.Mocks.Impl.EventRaiser.Create(System.Object,System.String)">
3562
Create an event raiser for the specified event on this instance.
3565
<member name="M:Rhino.Mocks.Impl.EventRaiser.#ctor(Rhino.Mocks.Interfaces.IMockedObject,System.String)">
3567
Creates a new instance of <c>EventRaiser</c>
3570
<member name="M:Rhino.Mocks.Impl.EventRaiser.Raise(System.Object[])">
3575
<member name="M:Rhino.Mocks.Impl.EventRaiser.Raise(System.Object,System.EventArgs)">
3577
The most common signature for events
3578
Here to allow intellisense to make better guesses about how
3579
it should suggest parameters.
3582
<member name="T:Rhino.Mocks.Impl.MethodOptions`1">
3584
Allows to define what would happen when a method
3588
<member name="T:Rhino.Mocks.Interfaces.IMethodOptions`1">
3590
Allows to define what would happen when a method
3594
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Return(`0)">
3596
Set the return value for the method.
3598
<param name="objToReturn">The object the method will return</param>
3599
<returns>IRepeat that defines how many times the method will return this value</returns>
3601
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.TentativeReturn">
3603
Allow to override this return value in the future
3605
<returns>IRepeat that defines how many times the method will return this value</returns>
3607
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Throw(System.Exception)">
3609
Throws the specified exception when the method is called.
3611
<param name="exception">Exception to throw</param>
3613
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.IgnoreArguments">
3615
Ignores the arguments for this method. Any argument will be matched
3619
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Constraints(Rhino.Mocks.Constraints.AbstractConstraint[])">
3621
Add constraints for the method's arguments.
3624
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback(System.Delegate)">
3626
Set a callback method for the last call
3629
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback(Rhino.Mocks.Delegates.Function{System.Boolean})">
3631
Set a delegate to be called when the expectation is matched.
3632
The delegate return value will be returned from the expectation.
3635
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``1(Rhino.Mocks.Delegates.Function{System.Boolean,``0})">
3637
Set a delegate to be called when the expectation is matched.
3638
The delegate return value will be returned from the expectation.
3641
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``2(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1})">
3643
Set a delegate to be called when the expectation is matched.
3644
The delegate return value will be returned from the expectation.
3647
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``3(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2})">
3649
Set a delegate to be called when the expectation is matched.
3650
The delegate return value will be returned from the expectation.
3653
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``4(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3})">
3655
Set a delegate to be called when the expectation is matched.
3656
The delegate return value will be returned from the expectation.
3659
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``5(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4})">
3661
Set a delegate to be called when the expectation is matched.
3662
The delegate return value will be returned from the expectation.
3665
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``6(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5})">
3667
Set a delegate to be called when the expectation is matched.
3668
The delegate return value will be returned from the expectation.
3671
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``7(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6})">
3673
Set a delegate to be called when the expectation is matched.
3674
The delegate return value will be returned from the expectation.
3677
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``8(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7})">
3679
Set a delegate to be called when the expectation is matched.
3680
The delegate return value will be returned from the expectation.
3683
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``9(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8})">
3685
Set a delegate to be called when the expectation is matched.
3686
The delegate return value will be returned from the expectation.
3689
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Callback``10(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
3691
Set a delegate to be called when the expectation is matched.
3692
The delegate return value will be returned from the expectation.
3695
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Do(System.Delegate)">
3697
Set a delegate to be called when the expectation is matched.
3698
The delegate return value will be returned from the expectation.
3701
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.WhenCalled(System.Action{Rhino.Mocks.MethodInvocation})">
3703
Set a delegate to be called when the expectation is matched
3704
and allow to optionally modify the invocation as needed
3707
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.CallOriginalMethod">
3709
Call the original method on the class, bypassing the mocking layers.
3713
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.CallOriginalMethod(Rhino.Mocks.Interfaces.OriginalCallOptions)">
3715
Call the original method on the class, optionally bypassing the mocking layers.
3719
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.PropertyBehavior">
3721
Use the property as a simple property, getting/setting the values without
3722
causing mock expectations.
3725
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.SetPropertyAndIgnoreArgument">
3727
Expect last (property) call as property setting, ignore the argument given
3731
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.SetPropertyWithArgument(`0)">
3733
Expect last (property) call as property setting with a given argument.
3735
<param name="argument"></param>
3738
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.GetEventRaiser">
3740
Get an event raiser for the last subscribed event.
3743
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.OutRef(System.Object[])">
3745
Set the parameter values for out and ref parameters.
3746
This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
3749
<member name="M:Rhino.Mocks.Interfaces.IMethodOptions`1.Message(System.String)">
3751
Documentation message for the expectation
3753
<param name="documentationMessage">Message</param>
3755
<member name="P:Rhino.Mocks.Interfaces.IMethodOptions`1.Repeat">
3757
Better syntax to define repeats.
3760
<member name="T:Rhino.Mocks.Interfaces.IRepeat`1">
3762
Allows to specify the number of time for method calls
3765
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Twice">
3767
Repeat the method twice.
3770
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Once">
3772
Repeat the method once.
3775
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.AtLeastOnce">
3777
Repeat the method at least once, then repeat as many time as it would like.
3780
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Any">
3782
Repeat the method any number of times.
3783
This has special affects in that this method would now ignore orderring.
3786
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Times(System.Int32,System.Int32)">
3788
Set the range to repeat an action.
3790
<param name="min">Min.</param>
3791
<param name="max">Max.</param>
3793
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Times(System.Int32)">
3795
Set the amount of times to repeat an action.
3798
<member name="M:Rhino.Mocks.Interfaces.IRepeat`1.Never">
3800
This method must not appear in the replay state.
3801
This has special affects in that this method would now ignore orderring.
3804
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.#ctor(Rhino.Mocks.MockRepository,Rhino.Mocks.Impl.RecordMockState,Rhino.Mocks.Interfaces.IMockedObject,Rhino.Mocks.Interfaces.IExpectation)">
3806
Creates a new <see cref="T:Rhino.Mocks.Interfaces.IMethodOptions`1"/> instance.
3808
<param name="repository">the repository for this expectation</param>
3809
<param name="record">the recorder for this proxy</param>
3810
<param name="proxy">the proxy for this expectation</param>
3811
<param name="expectation">Expectation.</param>
3813
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Constraints(Rhino.Mocks.Constraints.AbstractConstraint[])">
3815
Add constraints for the method's arguments.
3818
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback(System.Delegate)">
3820
Set a callback method for the last call
3823
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback(Rhino.Mocks.Delegates.Function{System.Boolean})">
3825
Set a callback method for the last call
3828
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``1(Rhino.Mocks.Delegates.Function{System.Boolean,``0})">
3830
Set a callback method for the last call
3833
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``2(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1})">
3835
Set a callback method for the last call
3838
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``3(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2})">
3840
Set a callback method for the last call
3843
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``4(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3})">
3845
Set a callback method for the last call
3848
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``5(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4})">
3850
Set a callback method for the last call
3853
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``6(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5})">
3855
Set a callback method for the last call
3858
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``7(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6})">
3860
Set a callback method for the last call
3863
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``8(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7})">
3865
Set a callback method for the last call
3868
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``9(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8})">
3870
Set a callback method for the last call
3873
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Callback``10(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
3875
Set a callback method for the last call
3878
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Do(System.Delegate)">
3880
Set a delegate to be called when the expectation is matched.
3881
The delegate return value will be returned from the expectation.
3884
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.WhenCalled(System.Action{Rhino.Mocks.MethodInvocation})">
3886
Set a delegate to be called when the expectation is matched.
3887
The delegate return value will be returned from the expectation.
3890
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Return(`0)">
3892
Set the return value for the method.
3894
<param name="objToReturn">The object the method will return</param>
3895
<returns>IRepeat that defines how many times the method will return this value</returns>
3897
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.TentativeReturn">
3899
Set the return value for the method, but allow to override this return value in the future
3901
<returns>IRepeat that defines how many times the method will return this value</returns>
3903
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Throw(System.Exception)">
3905
Throws the specified exception when the method is called.
3907
<param name="exception">Exception to throw</param>
3909
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.IgnoreArguments">
3911
Ignores the arguments for this method. Any argument will be matched
3915
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.CallOriginalMethod">
3917
Call the original method on the class, bypassing the mocking layers.
3921
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.CallOriginalMethod(Rhino.Mocks.Interfaces.OriginalCallOptions)">
3923
Call the original method on the class, optionally bypassing the mocking layers
3927
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.PropertyBehavior">
3929
Use the property as a simple property, getting/setting the values without
3930
causing mock expectations.
3933
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.SetPropertyAndIgnoreArgument">
3935
Expect last (property) call as property setting, ignore the argument given
3939
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.SetPropertyWithArgument(`0)">
3941
Expect last (property) call as property setting with a given argument.
3943
<param name="argument"></param>
3946
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.GetEventRaiser">
3948
Gets the event raiser for the last event
3951
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.OutRef(System.Object[])">
3953
Set the parameter values for out and ref parameters.
3954
This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
3957
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Twice">
3959
Repeat the method twice.
3962
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Once">
3964
Repeat the method once.
3967
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.AtLeastOnce">
3969
Repeat the method at least once, then repeat as many time as it would like.
3972
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Never">
3974
This method must not appear in the replay state.
3977
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Message(System.String)">
3979
Documentation message for the expectation
3981
<param name="documentationMessage">Message</param>
3983
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Any">
3985
Repeat the method any number of times.
3988
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Times(System.Int32,System.Int32)">
3990
Set the range to repeat an action.
3992
<param name="min">Min.</param>
3993
<param name="max">Max.</param>
3995
<member name="M:Rhino.Mocks.Impl.MethodOptions`1.Times(System.Int32)">
3997
Set the amount of times to repeat an action.
4000
<member name="P:Rhino.Mocks.Impl.MethodOptions`1.Repeat">
4002
Better syntax to define repeats.
4005
<member name="T:Rhino.Mocks.Impl.MockedObjectsEquality">
4007
This class will provide hash code for hashtables without needing
4008
to call the GetHashCode() on the object, which may very well be mocked.
4009
This class has no state so it is a singelton to avoid creating a lot of objects
4010
that does the exact same thing. See flyweight patterns.
4013
<member name="M:Rhino.Mocks.Impl.MockedObjectsEquality.GetHashCode(System.Object)">
4015
Get the hash code for a proxy object without calling GetHashCode()
4019
<member name="M:Rhino.Mocks.Impl.MockedObjectsEquality.Compare(System.Object,System.Object)">
4021
Compares two instances of mocked objects
4024
<member name="M:Rhino.Mocks.Impl.MockedObjectsEquality.Equals(System.Object,System.Object)">
4026
Compare two mocked objects
4029
<member name="P:Rhino.Mocks.Impl.MockedObjectsEquality.NextHashCode">
4031
The next hash code value for a mock object.
4032
This is safe for multi threading.
4035
<member name="P:Rhino.Mocks.Impl.MockedObjectsEquality.Instance">
4037
The sole instance of <see cref="T:Rhino.Mocks.Impl.MockedObjectsEquality"/>
4040
<member name="T:Rhino.Mocks.Impl.ProxyInstance">
4042
This is a dummy type that is used merely to give DynamicProxy the proxy instance that
4043
it needs to create IProxy's types.
4046
<member name="T:Rhino.Mocks.Interfaces.IMockedObject">
4048
Interface to find the repository of a mocked object
4051
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.ShouldCallOriginal(System.Reflection.MethodInfo)">
4053
Return true if it should call the original method on the object
4054
instead of pass it to the message chain.
4056
<param name="method">The method to call</param>
4058
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.RegisterMethodForCallingOriginal(System.Reflection.MethodInfo)">
4060
Register a method to be called on the object directly
4063
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.RegisterPropertyBehaviorFor(System.Reflection.PropertyInfo)">
4065
Register a property on the object that will behave as a simple property
4068
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.IsPropertyMethod(System.Reflection.MethodInfo)">
4070
Check if the method was registered as a property method.
4073
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.HandleProperty(System.Reflection.MethodInfo,System.Object[])">
4075
Do get/set on the property, according to need.
4078
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.HandleEvent(System.Reflection.MethodInfo,System.Object[])">
4080
Do add/remove on the event
4083
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.GetEventSubscribers(System.String)">
4085
Get the subscribers of a spesific event
4088
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.GetDeclaringType(System.Reflection.MethodInfo)">
4090
Gets the declaring type of the method, taking into acccount the possible generic
4091
parameters that it was created with.
4094
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.ClearState(Rhino.Mocks.BackToRecordOptions)">
4096
Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
4099
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.GetCallArgumentsFor(System.Reflection.MethodInfo)">
4101
Get all the method calls arguments that were made against this object with the specificed
4105
Only method calls in replay mode are counted
4108
<member name="M:Rhino.Mocks.Interfaces.IMockedObject.MethodCall(System.Reflection.MethodInfo,System.Object[])">
4110
Records the method call
4113
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.DependentMocks">
4115
Mocks that are tied to this mock lifestyle
4118
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.ProxyHash">
4120
The unique hash code of this mock, which is not related
4121
to the value of the GetHashCode() call on the object.
4124
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.Repository">
4126
Gets the repository.
4129
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.ImplementedTypes">
4131
Gets the implemented types by this mocked object
4133
<value>The implemented.</value>
4135
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.ConstructorArguments">
4137
Gets or sets the constructor arguments.
4139
<value>The constructor arguments.</value>
4141
<member name="P:Rhino.Mocks.Interfaces.IMockedObject.MockedObjectInstance">
4143
The mocked instance that this is representing
4146
<member name="M:Rhino.Mocks.Impl.ProxyInstance.#ctor(Rhino.Mocks.MockRepository,System.Type[])">
4148
Create a new instance of <see cref="T:Rhino.Mocks.Impl.ProxyInstance"/>
4151
<member name="M:Rhino.Mocks.Impl.ProxyInstance.ShouldCallOriginal(System.Reflection.MethodInfo)">
4153
Return true if it should call the original method on the object
4154
instead of pass it to the message chain.
4156
<param name="method">The method to call</param>
4158
<member name="M:Rhino.Mocks.Impl.ProxyInstance.RegisterMethodForCallingOriginal(System.Reflection.MethodInfo)">
4160
Register a method to be called on the object directly
4163
<member name="M:Rhino.Mocks.Impl.ProxyInstance.RegisterPropertyBehaviorFor(System.Reflection.PropertyInfo)">
4165
Register a property on the object that will behave as a simple property
4166
Return true if there is already a value for the property
4169
<member name="M:Rhino.Mocks.Impl.ProxyInstance.IsPropertyMethod(System.Reflection.MethodInfo)">
4171
Check if the method was registered as a property method.
4174
<member name="M:Rhino.Mocks.Impl.ProxyInstance.HandleProperty(System.Reflection.MethodInfo,System.Object[])">
4176
Do get/set on the property, according to need.
4179
<member name="M:Rhino.Mocks.Impl.ProxyInstance.HandleEvent(System.Reflection.MethodInfo,System.Object[])">
4181
Do add/remove on the event
4184
<member name="M:Rhino.Mocks.Impl.ProxyInstance.GetEventSubscribers(System.String)">
4186
Get the subscribers of a spesific event
4189
<member name="M:Rhino.Mocks.Impl.ProxyInstance.GetDeclaringType(System.Reflection.MethodInfo)">
4191
Gets the declaring type of the method, taking into acccount the possible generic
4192
parameters that it was created with.
4195
<member name="M:Rhino.Mocks.Impl.ProxyInstance.GetCallArgumentsFor(System.Reflection.MethodInfo)">
4197
Get all the method calls arguments that were made against this object with the specificed
4200
<param name="method"></param>
4203
Only method calls in replay mode are counted
4206
<member name="M:Rhino.Mocks.Impl.ProxyInstance.MethodCall(System.Reflection.MethodInfo,System.Object[])">
4208
Records the method call
4210
<param name="method"></param>
4211
<param name="args"></param>
4213
<member name="M:Rhino.Mocks.Impl.ProxyInstance.ClearState(Rhino.Mocks.BackToRecordOptions)">
4215
Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
4218
<member name="P:Rhino.Mocks.Impl.ProxyInstance.DependentMocks">
4220
Mocks that are tied to this mock lifestyle
4223
<member name="P:Rhino.Mocks.Impl.ProxyInstance.ProxyHash">
4225
The unique hash code of this proxy, which is not related
4226
to the value of the GetHashCode() call on the object.
4229
<member name="P:Rhino.Mocks.Impl.ProxyInstance.Repository">
4231
Gets the repository.
4234
<member name="P:Rhino.Mocks.Impl.ProxyInstance.ConstructorArguments">
4236
Gets or sets the constructor arguments.
4238
<value>The constructor arguments.</value>
4240
<member name="P:Rhino.Mocks.Impl.ProxyInstance.MockedObjectInstance">
4242
The mocked instance that this is representing
4245
<member name="P:Rhino.Mocks.Impl.ProxyInstance.ImplementedTypes">
4247
Gets the implemented types by this mocked object
4249
<value>The implemented.</value>
4251
<member name="T:Rhino.Mocks.Impl.Range">
4253
Range for expected method calls
4256
<member name="M:Rhino.Mocks.Impl.Range.#ctor(System.Int32,System.Nullable{System.Int32})">
4258
Creates a new <see cref="T:Rhino.Mocks.Impl.Range"/> instance.
4260
<param name="min">Min.</param>
4261
<param name="max">Max.</param>
4263
<member name="M:Rhino.Mocks.Impl.Range.ToString">
4265
Return the string representation of this range.
4268
<member name="P:Rhino.Mocks.Impl.Range.Min">
4270
Gets or sets the min.
4274
<member name="P:Rhino.Mocks.Impl.Range.Max">
4276
Gets or sets the max.
4280
<member name="T:Rhino.Mocks.Impl.RecordDynamicMockState">
4282
Records all the expectations for a mock and
4283
return a ReplayDynamicMockState when Replay()
4287
<member name="M:Rhino.Mocks.Impl.RecordDynamicMockState.#ctor(Rhino.Mocks.Interfaces.IMockedObject,Rhino.Mocks.MockRepository)">
4289
Creates a new <see cref="T:Rhino.Mocks.Impl.RecordDynamicMockState"/> instance.
4291
<param name="repository">Repository.</param>
4292
<param name="mockedObject">The proxy that generates the method calls</param>
4294
<member name="M:Rhino.Mocks.Impl.RecordDynamicMockState.DoReplay">
4296
Verify that we can move to replay state and move
4300
<member name="M:Rhino.Mocks.Impl.RecordDynamicMockState.GetDefaultCallCountRangeExpectation">
4302
Get the default call count range expectation
4306
<member name="M:Rhino.Mocks.Impl.RecordDynamicMockState.BackToRecord">
4308
Gets a mock state that match the original mock state of the object.
4311
<member name="T:Rhino.Mocks.Impl.RecordPartialMockState">
4313
Records all the expectations for a mock and
4314
return a ReplayPartialMockState when Replay()
4318
<member name="M:Rhino.Mocks.Impl.RecordPartialMockState.#ctor(Rhino.Mocks.Interfaces.IMockedObject,Rhino.Mocks.MockRepository)">
4320
Creates a new <see cref="T:Rhino.Mocks.Impl.RecordDynamicMockState"/> instance.
4322
<param name="repository">Repository.</param>
4323
<param name="mockedObject">The proxy that generates the method calls</param>
4325
<member name="M:Rhino.Mocks.Impl.RecordPartialMockState.DoReplay">
4327
Verify that we can move to replay state and move
4331
<member name="M:Rhino.Mocks.Impl.RecordPartialMockState.BackToRecord">
4333
Gets a mock state that matches the original mock state of the object.
4336
<member name="T:Rhino.Mocks.Impl.RepeatableOption">
4338
Options for special repeat option
4341
<member name="F:Rhino.Mocks.Impl.RepeatableOption.Normal">
4343
This method can be called only as many times as the IMethodOptions.Expect allows.
4346
<member name="F:Rhino.Mocks.Impl.RepeatableOption.Never">
4348
This method should never be called
4351
<member name="F:Rhino.Mocks.Impl.RepeatableOption.Any">
4353
This method can be call any number of times
4356
<member name="F:Rhino.Mocks.Impl.RepeatableOption.OriginalCall">
4358
This method will call the original method
4361
<member name="F:Rhino.Mocks.Impl.RepeatableOption.OriginalCallBypassingMocking">
4363
This method will call the original method, bypassing the mocking layer
4366
<member name="F:Rhino.Mocks.Impl.RepeatableOption.PropertyBehavior">
4368
This method will simulate simple property behavior
4371
<member name="T:Rhino.Mocks.Impl.ReplayDynamicMockState">
4373
Validate all expectations on a mock and ignores calls to
4374
any method that was not setup properly.
4377
<member name="M:Rhino.Mocks.Impl.ReplayDynamicMockState.#ctor(Rhino.Mocks.Impl.RecordDynamicMockState)">
4379
Creates a new <see cref="T:Rhino.Mocks.Impl.ReplayDynamicMockState"/> instance.
4381
<param name="previousState">The previous state for this method</param>
4383
<member name="M:Rhino.Mocks.Impl.ReplayDynamicMockState.DoMethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
4385
Add a method call for this state' mock.
4387
<param name="invocation">The invocation for this method</param>
4388
<param name="method">The method that was called</param>
4389
<param name="args">The arguments this method was called with</param>
4391
<member name="M:Rhino.Mocks.Impl.ReplayDynamicMockState.BackToRecord">
4393
Gets a mock state that match the original mock state of the object.
4396
<member name="T:Rhino.Mocks.Impl.ReplayPartialMockState">
4398
Validate all expectations on a mock and ignores calls to
4399
any method that was not setup properly.
4402
<member name="M:Rhino.Mocks.Impl.ReplayPartialMockState.#ctor(Rhino.Mocks.Impl.RecordPartialMockState)">
4404
Creates a new <see cref="T:Rhino.Mocks.Impl.ReplayDynamicMockState"/> instance.
4406
<param name="previousState">The previous state for this method</param>
4408
<member name="M:Rhino.Mocks.Impl.ReplayPartialMockState.DoMethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
4410
Add a method call for this state' mock.
4412
<param name="invocation">The invocation for this method</param>
4413
<param name="method">The method that was called</param>
4414
<param name="args">The arguments this method was called with</param>
4416
<member name="M:Rhino.Mocks.Impl.ReplayPartialMockState.BackToRecord">
4418
Gets a mock state that match the original mock state of the object.
4421
<member name="T:Rhino.Mocks.Impl.RhinoInterceptor">
4423
Summary description for RhinoInterceptor.
4426
<member name="M:Rhino.Mocks.Impl.RhinoInterceptor.#ctor(Rhino.Mocks.MockRepository,Rhino.Mocks.Interfaces.IMockedObject)">
4428
Creates a new <see cref="T:Rhino.Mocks.Impl.RhinoInterceptor"/> instance.
4431
<member name="M:Rhino.Mocks.Impl.RhinoInterceptor.Intercept(Castle.Core.Interceptor.IInvocation)">
4433
Intercept a method call and direct it to the repository.
4436
<member name="T:Rhino.Mocks.Impl.Validate">
4438
Validate arguments for methods
4441
<member name="M:Rhino.Mocks.Impl.Validate.IsNotNull(System.Object,System.String)">
4443
Validate that the passed argument is not null.
4445
<param name="obj">The object to validate</param>
4446
<param name="name">The name of the argument</param>
4447
<exception cref="T:System.ArgumentNullException">
4448
If the obj is null, an ArgumentNullException with the passed name
4452
<member name="M:Rhino.Mocks.Impl.Validate.ArgsEqual(System.Object[],System.Object[])">
4454
Validate that the arguments are equal.
4456
<param name="expectedArgs">Expected args.</param>
4457
<param name="actualArgs">Actual Args.</param>
4459
<member name="M:Rhino.Mocks.Impl.Validate.AreEqual(System.Object,System.Object)">
4461
Validate that the two arguments are equals, including validation for
4462
when the arguments are collections, in which case it will validate their values.
4465
<member name="M:Rhino.Mocks.Impl.Validate.SafeEquals(System.Object,System.Object)">
4467
This method is safe for use even if any of the objects is a mocked object
4468
that override equals.
4471
<member name="T:Rhino.Mocks.Impl.VerifiedMockState">
4473
Throw an object already verified when accessed
4476
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.#ctor(Rhino.Mocks.Interfaces.IMockState)">
4478
Create a new instance of VerifiedMockState
4480
<param name="previous">The previous mock state, used to get the initial record state</param>
4482
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.MethodCall(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
4484
Add a method call for this state' mock.
4486
<param name="invocation">The invocation for this method</param>
4487
<param name="method">The method that was called</param>
4488
<param name="args">The arguments this method was called with</param>
4490
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.Verify">
4492
Verify that this mock expectations have passed.
4495
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.Replay">
4497
Verify that we can move to replay state and move
4501
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.BackToRecord">
4503
Gets a mock state that match the original mock state of the object.
4506
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.GetLastMethodOptions``1">
4508
Get the options for the last method call
4511
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.SetExceptionToThrowOnVerify(System.Exception)">
4513
Set the exception to throw when Verify is called.
4514
This is used to report exception that may have happened but where caught in the code.
4515
This way, they are reported anyway when Verify() is called.
4518
<member name="M:Rhino.Mocks.Impl.VerifiedMockState.NotifyCallOnPropertyBehavior">
4523
<member name="P:Rhino.Mocks.Impl.VerifiedMockState.VerifyState">
4525
Gets the matching verify state for this state
4528
<member name="P:Rhino.Mocks.Impl.VerifiedMockState.LastMethodOptions">
4530
Get the options for the last method call
4533
<member name="T:Rhino.Mocks.Interfaces.IMethodRecorder">
4535
Records the actions on all the mocks created by a repository.
4538
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.Record(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
4540
Records the specified call with the specified args on the mocked object.
4543
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetRecordedExpectation(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
4545
Get the expectation for this method on this object with this arguments
4548
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetRepeatableExpectation(System.Object,System.Reflection.MethodInfo,System.Object[])">
4550
This check the methods that were setup using the SetupResult.For()
4551
or LastCall.Repeat.Any() and that bypass the whole expectation model.
4554
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetAllExpectationsForProxyAndMethod(System.Object,System.Reflection.MethodInfo)">
4556
Gets the all expectations for a mocked object and method combination,
4557
regardless of the expected arguments / callbacks / contraints.
4559
<param name="proxy">Mocked object.</param>
4560
<param name="method">Method.</param>
4561
<returns>List of all relevant expectation</returns>
4563
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetAllExpectationsForProxy(System.Object)">
4565
Gets the all expectations for proxy.
4567
<param name="proxy">Mocked object.</param>
4568
<returns>List of all relevant expectation</returns>
4570
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.RemoveAllRepeatableExpectationsForProxy(System.Object)">
4572
Removes all the repeatable expectations for proxy.
4574
<param name="proxy">Mocked object.</param>
4576
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.ReplaceExpectation(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation,Rhino.Mocks.Interfaces.IExpectation)">
4578
Replaces the old expectation with the new expectation for the specified proxy/method pair.
4579
This replace ALL expectations that equal to old expectations.
4581
<param name="proxy">Proxy.</param>
4582
<param name="method">Method.</param>
4583
<param name="oldExpectation">Old expectation.</param>
4584
<param name="newExpectation">New expectation.</param>
4586
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.AddRecorder(Rhino.Mocks.Interfaces.IMethodRecorder)">
4588
Adds the recorder and turn it into the active recorder.
4590
<param name="recorder">Recorder.</param>
4592
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.MoveToPreviousRecorder">
4594
Moves to previous recorder.
4597
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetRecordedExpectationOrNull(System.Object,System.Reflection.MethodInfo,System.Object[])">
4599
Gets the recorded expectation or null.
4602
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.GetExpectedCallsMessage">
4604
Gets the next expected calls string.
4607
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.MoveToParentReplayer">
4609
Moves to parent recorder.
4612
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.AddToRepeatableMethods(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
4614
Set the expectation so it can repeat any number of times.
4617
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.RemoveExpectation(Rhino.Mocks.Interfaces.IExpectation)">
4619
Removes the expectation from the recorder
4622
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.ClearReplayerToCall(Rhino.Mocks.Interfaces.IMethodRecorder)">
4624
Clear the replayer to call (and all its chain of replayers)
4625
This also removes it from the list of expectations, so it will never be considered again
4628
<member name="M:Rhino.Mocks.Interfaces.IMethodRecorder.UnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
4630
Get the expectation for this method on this object with this arguments
4633
<member name="P:Rhino.Mocks.Interfaces.IMethodRecorder.HasExpectations">
4635
Gets a value indicating whether this instance has expectations that weren't satisfied yet.
4638
<c>true</c> if this instance has expectations; otherwise, <c>false</c>.
4641
<member name="T:Rhino.Mocks.LastCall">
4643
Allows to set various options for the last method call on
4645
If the method has a return value, it's recommended to use Expect
4648
<member name="M:Rhino.Mocks.LastCall.On(System.Object)">
4650
Allows to get an interface to work on the last call.
4652
<param name="mockedInstance">The mocked object</param>
4653
<returns>Interface that allows to set options for the last method call on this object</returns>
4655
<member name="M:Rhino.Mocks.LastCall.Return``1(``0)">
4657
Set the return value for the method.
4659
<param name="objToReturn">The object the method will return</param>
4660
<returns>IRepeat that defines how many times the method will return this value</returns>
4662
<member name="M:Rhino.Mocks.LastCall.Return(System.Object)">
4664
Set the return value for the method. This overload is needed for LastCall.Return(null)
4666
<param name="objToReturn">The object the method will return</param>
4667
<returns>IRepeat that defines how many times the method will return this value</returns>
4669
<member name="M:Rhino.Mocks.LastCall.Throw(System.Exception)">
4671
Throws the specified exception when the method is called.
4673
<param name="exception">Exception to throw</param>
4675
<member name="M:Rhino.Mocks.LastCall.IgnoreArguments">
4677
Ignores the arguments for this method. Any argument will be matched
4681
<member name="M:Rhino.Mocks.LastCall.Constraints(Rhino.Mocks.Constraints.AbstractConstraint[])">
4683
Add constraints for the method's arguments.
4686
<member name="M:Rhino.Mocks.LastCall.Callback(System.Delegate)">
4688
Set a callback method for the last call
4691
<member name="M:Rhino.Mocks.LastCall.Callback(Rhino.Mocks.Delegates.Function{System.Boolean})">
4693
Set a callback method for the last call
4696
<member name="M:Rhino.Mocks.LastCall.Callback``1(Rhino.Mocks.Delegates.Function{System.Boolean,``0})">
4698
Set a callback method for the last call
4701
<member name="M:Rhino.Mocks.LastCall.Callback``2(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1})">
4703
Set a callback method for the last call
4706
<member name="M:Rhino.Mocks.LastCall.Callback``3(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2})">
4708
Set a callback method for the last call
4711
<member name="M:Rhino.Mocks.LastCall.Callback``4(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3})">
4713
Set a callback method for the last call
4716
<member name="M:Rhino.Mocks.LastCall.Callback``5(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4})">
4718
Set a callback method for the last call
4721
<member name="M:Rhino.Mocks.LastCall.Callback``6(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5})">
4723
Set a callback method for the last call
4726
<member name="M:Rhino.Mocks.LastCall.Callback``7(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6})">
4728
Set a callback method for the last call
4731
<member name="M:Rhino.Mocks.LastCall.Callback``8(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7})">
4733
Set a callback method for the last call
4736
<member name="M:Rhino.Mocks.LastCall.Callback``9(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8})">
4738
Set a callback method for the last call
4741
<member name="M:Rhino.Mocks.LastCall.Callback``10(Rhino.Mocks.Delegates.Function{System.Boolean,``0,``1,``2,``3,``4,``5,``6,``7,``8,``9})">
4743
Set a callback method for the last call
4746
<member name="M:Rhino.Mocks.LastCall.CallOriginalMethod">
4748
Call the original method on the class, bypassing the mocking layers, for the last call.
4751
<member name="M:Rhino.Mocks.LastCall.CallOriginalMethod(Rhino.Mocks.Interfaces.OriginalCallOptions)">
4753
Call the original method on the class, optionally bypassing the mocking layers, for the last call.
4756
<member name="M:Rhino.Mocks.LastCall.Do(System.Delegate)">
4758
Set a delegate to be called when the expectation is matched.
4759
The delegate return value will be returned from the expectation.
4762
<member name="M:Rhino.Mocks.LastCall.GetEventRaiser">
4764
Gets an interface that will raise the last event when called.
4767
<member name="M:Rhino.Mocks.LastCall.OutRef(System.Object[])">
4769
Set the parameter values for out and ref parameters.
4770
This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
4773
<member name="M:Rhino.Mocks.LastCall.Message(System.String)">
4775
Documentation message for the expectation
4777
<param name="documentationMessage">Message</param>
4779
<member name="M:Rhino.Mocks.LastCall.PropertyBehavior">
4781
Use the property as a simple property, getting/setting the values without
4782
causing mock expectations.
4785
<member name="P:Rhino.Mocks.LastCall.Repeat">
4787
Better syntax to define repeats.
4790
<member name="T:Rhino.Mocks.MethodRecorders.MethodRecorderBase">
4792
Base class for method recorders, handle delegating to inner recorder if needed.
4795
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.recordedActions">
4797
List of the expected actions on for this recorder
4798
The legal values are:
4803
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.recorderToCall">
4805
The current recorder.
4808
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.replayerToCall">
4810
The current replayer;
4813
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.parentRecorder">
4815
The parent recorder of this one, may be null.
4818
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.replayersToIgnoreForThisCall">
4820
This contains a list of all the replayers that should be ignored
4821
for a spesific method call. A replayer gets into this list by calling
4822
ClearReplayerToCall() on its parent. This list is Clear()ed on each new invocation.
4825
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.repeatableMethods">
4827
All the repeatable methods calls.
4830
<member name="F:Rhino.Mocks.MethodRecorders.MethodRecorderBase.recursionDepth">
4832
Counts the recursion depth of the current expectation search stack
4835
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.#ctor(Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
4837
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.MethodRecorderBase"/> instance.
4840
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.#ctor(Rhino.Mocks.Interfaces.IMethodRecorder,Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
4842
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.MethodRecorderBase"/> instance.
4844
<param name="parentRecorder">Parent recorder.</param>
4845
<param name="repeatableMethods">Repeatable methods</param>
4847
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.Record(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
4849
Records the specified call with the specified args on the mocked object.
4852
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetRecordedExpectation(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
4854
Get the expectation for this method on this object with this arguments
4857
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetAllExpectationsForProxyAndMethod(System.Object,System.Reflection.MethodInfo)">
4859
Gets the all expectations for a mocked object and method combination,
4860
regardless of the expected arguments / callbacks / contraints.
4862
<param name="proxy">Mocked object.</param>
4863
<param name="method">Method.</param>
4864
<returns>List of all relevant expectation</returns>
4866
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetAllExpectationsForProxy(System.Object)">
4868
Gets the all expectations for proxy.
4870
<param name="proxy">Mocked object.</param>
4871
<returns>List of all relevant expectation</returns>
4873
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.ReplaceExpectation(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation,Rhino.Mocks.Interfaces.IExpectation)">
4875
Replaces the old expectation with the new expectation for the specified proxy/method pair.
4876
This replace ALL expectations that equal to old expectations.
4878
<param name="proxy">Proxy.</param>
4879
<param name="method">Method.</param>
4880
<param name="oldExpectation">Old expectation.</param>
4881
<param name="newExpectation">New expectation.</param>
4883
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.RemoveAllRepeatableExpectationsForProxy(System.Object)">
4885
Remove the all repeatable expectations for proxy.
4887
<param name="proxy">Mocked object.</param>
4889
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.AddToRepeatableMethods(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
4891
Set the expectation so it can repeat any number of times.
4894
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.RemoveExpectation(Rhino.Mocks.Interfaces.IExpectation)">
4896
Removes the expectation from the recorder
4899
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.AddRecorder(Rhino.Mocks.Interfaces.IMethodRecorder)">
4901
Adds the recorder and turn it into the active recorder.
4903
<param name="recorder">Recorder.</param>
4905
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.MoveToPreviousRecorder">
4907
Moves to previous recorder.
4910
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.MoveToParentReplayer">
4912
Moves to parent recorder.
4915
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetRecordedExpectationOrNull(System.Object,System.Reflection.MethodInfo,System.Object[])">
4917
Gets the recorded expectation or null.
4920
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.ClearReplayerToCall(Rhino.Mocks.Interfaces.IMethodRecorder)">
4922
Clear the replayer to call (and all its chain of replayers).
4923
This also removes it from the list of expectations, so it will never be considered again
4926
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.UnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
4928
Get the expectation for this method on this object with this arguments
4931
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetExpectedCallsMessage">
4933
Gets the next expected calls string.
4936
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoGetRecordedExpectationOrNull(System.Object,System.Reflection.MethodInfo,System.Object[])">
4938
Handles the real getting of the recorded expectation or null.
4941
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoRecord(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
4943
Handle the real execution of this method for the derived class
4946
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoGetRecordedExpectation(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
4948
Handle the real execution of this method for the derived class
4951
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoGetAllExpectationsForProxy(System.Object)">
4953
Handle the real execution of this method for the derived class
4956
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoReplaceExpectation(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation,Rhino.Mocks.Interfaces.IExpectation)">
4958
Handle the real execution of this method for the derived class
4961
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoRemoveExpectation(Rhino.Mocks.Interfaces.IExpectation)">
4963
Handle the real execution of this method for the derived class
4966
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoAddRecorder(Rhino.Mocks.Interfaces.IMethodRecorder)">
4968
Handle the real execution of this method for the derived class
4971
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.ShouldConsiderThisReplayer(Rhino.Mocks.Interfaces.IMethodRecorder)">
4973
Should this replayer be considered valid for this call?
4976
<member name="M:Rhino.Mocks.MethodRecorders.MethodRecorderBase.GetRepeatableExpectation(System.Object,System.Reflection.MethodInfo,System.Object[])">
4978
This check the methods that were setup using the SetupResult.For()
4979
or LastCall.Repeat.Any() and that bypass the whole expectation model.
4982
<member name="P:Rhino.Mocks.MethodRecorders.MethodRecorderBase.HasExpectations">
4984
Gets a value indicating whether this instance has expectations that weren't satisfied yet.
4987
<c>true</c> if this instance has expectations; otherwise, <c>false</c>.
4990
<member name="P:Rhino.Mocks.MethodRecorders.MethodRecorderBase.DoHasExpectations">
4992
Handle the real execution of this method for the derived class
4995
<member name="T:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder">
4997
Ordered collection of methods, methods must arrive in specified order
5001
<member name="T:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder">
5003
Unordered collection of method records, any expectation that exist
5007
<member name="F:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.parentRecorderRedirection">
5009
The parent recorder we have redirected to.
5010
Useful for certain edge cases in orderring.
5011
See: FieldProblem_Entropy for the details.
5014
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.#ctor(Rhino.Mocks.Interfaces.IMethodRecorder,Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
5016
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder"/> instance.
5018
<param name="parentRecorder">Parent recorder.</param>
5019
<param name="repeatableMethods">Repeatable methods</param>
5021
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.#ctor(Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
5023
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder"/> instance.
5026
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoRecord(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
5028
Records the specified call with the specified args on the mocked object.
5030
<param name="proxy">Mocked object.</param>
5031
<param name="method">Method.</param>
5032
<param name="expectation">Expectation.</param>
5034
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoGetRecordedExpectation(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
5036
Get the expectation for this method on this object with this arguments
5038
<param name="invocation">Invocation for this method</param>
5039
<param name="proxy">Mocked object.</param>
5040
<param name="method">Method.</param>
5041
<param name="args">Args.</param>
5042
<returns>True is the call was recorded, false otherwise</returns>
5044
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.GetAllExpectationsForProxyAndMethod(System.Object,System.Reflection.MethodInfo)">
5046
Gets the all expectations for a mocked object and method combination,
5047
regardless of the expected arguments / callbacks / contraints.
5049
<param name="proxy">Mocked object.</param>
5050
<param name="method">Method.</param>
5051
<returns>List of all relevant expectation</returns>
5053
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoGetAllExpectationsForProxy(System.Object)">
5055
Gets the all expectations for proxy.
5057
<param name="proxy">Mocked object.</param>
5058
<returns>List of all relevant expectation</returns>
5060
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoReplaceExpectation(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation,Rhino.Mocks.Interfaces.IExpectation)">
5062
Replaces the old expectation with the new expectation for the specified proxy/method pair.
5063
This replace ALL expectations that equal to old expectations.
5065
<param name="proxy">Proxy.</param>
5066
<param name="method">Method.</param>
5067
<param name="oldExpectation">Old expectation.</param>
5068
<param name="newExpectation">New expectation.</param>
5070
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoRemoveExpectation(Rhino.Mocks.Interfaces.IExpectation)">
5072
Handle the real execution of this method for the derived class
5075
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoGetRecordedExpectationOrNull(System.Object,System.Reflection.MethodInfo,System.Object[])">
5077
Handles the real getting of the recorded expectation or null.
5080
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoAddRecorder(Rhino.Mocks.Interfaces.IMethodRecorder)">
5082
Handle the real execution of this method for the derived class
5085
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.GetExpectedCallsMessage">
5087
Gets the next expected calls string.
5090
<member name="M:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.UnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
5092
Create an exception for an unexpected method call.
5095
<member name="P:Rhino.Mocks.MethodRecorders.UnorderedMethodRecorder.DoHasExpectations">
5097
Gets a value indicating whether this instance has expectations that weren't satisfied yet.
5100
<c>true</c> if this instance has expectations; otherwise, <c>false</c>.
5103
<member name="M:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder.#ctor(Rhino.Mocks.Interfaces.IMethodRecorder,Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
5105
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder"/> instance.
5107
<param name="parentRecorder">Parent recorder.</param>
5108
<param name="repeatableMethods">Repetable methods</param>
5110
<member name="M:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder.#ctor(Rhino.Mocks.Generated.ProxyMethodExpectationsDictionary)">
5112
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder"/> instance.
5115
<member name="M:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder.DoGetRecordedExpectationOrNull(System.Object,System.Reflection.MethodInfo,System.Object[])">
5117
Handles the real getting of the recorded expectation or null.
5120
<member name="M:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder.UnexpectedMethodCall(Castle.Core.Interceptor.IInvocation,System.Object,System.Reflection.MethodInfo,System.Object[])">
5122
Get the expectation for this method on this object with this arguments
5125
<member name="M:Rhino.Mocks.MethodRecorders.OrderedMethodRecorder.GetExpectedCallsMessage">
5127
Gets the next expected calls string.
5130
<member name="T:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet">
5132
Hold an expectation for a method call on an object
5135
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.#ctor(System.Object,System.Reflection.MethodInfo,Rhino.Mocks.Interfaces.IExpectation)">
5137
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet"/> instance.
5139
<param name="proxy">Proxy.</param>
5140
<param name="method">Method.</param>
5141
<param name="expectation">Expectation.</param>
5143
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.Equals(System.Object)">
5145
Determines if the object equal to this instance
5147
<param name="obj">Obj.</param>
5150
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.GetHashCode">
5156
<member name="P:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.Proxy">
5162
<member name="P:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.Method">
5168
<member name="P:Rhino.Mocks.MethodRecorders.ProxyMethodExpectationTriplet.Expectation">
5170
Gets the expectation.
5174
<member name="T:Rhino.Mocks.MethodRecorders.ProxyMethodPair">
5176
Holds a pair of mocked object and a method
5177
and allows to compare them against each other.
5178
This allows us to have a distinction between mockOne.MyMethod() and
5179
mockTwo.MyMethod()...
5182
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodPair.#ctor(System.Object,System.Reflection.MethodInfo)">
5184
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.ProxyMethodPair"/> instance.
5186
<param name="proxy">Proxy.</param>
5187
<param name="method">Method.</param>
5189
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodPair.Equals(System.Object)">
5191
Determines whatever obj equals to this instance.
5192
ProxyMethodPairs are equal when they point to the same /instance/ of
5193
an object, and to the same method.
5195
<param name="obj">Obj.</param>
5198
<member name="M:Rhino.Mocks.MethodRecorders.ProxyMethodPair.GetHashCode">
5204
<member name="P:Rhino.Mocks.MethodRecorders.ProxyMethodPair.Proxy">
5210
<member name="P:Rhino.Mocks.MethodRecorders.ProxyMethodPair.Method">
5216
<member name="T:Rhino.Mocks.MethodRecorders.RecorderChanger">
5218
Change the recorder from ordered to unordered and vice versa
5221
<member name="M:Rhino.Mocks.MethodRecorders.RecorderChanger.#ctor(Rhino.Mocks.MockRepository,Rhino.Mocks.Interfaces.IMethodRecorder,Rhino.Mocks.Interfaces.IMethodRecorder)">
5223
Creates a new <see cref="T:Rhino.Mocks.MethodRecorders.RecorderChanger"/> instance.
5226
<member name="M:Rhino.Mocks.MethodRecorders.RecorderChanger.Dispose">
5228
Disposes this instance.
5231
<member name="T:Rhino.Mocks.Mocker">
5233
Accessor for the current mocker
5236
<member name="P:Rhino.Mocks.Mocker.Current">
5241
<member name="T:Rhino.Mocks.RhinoMocks">
5243
Used for [assembly: InternalsVisibleTo(RhinoMocks.StrongName)]
5244
Used for [assembly: InternalsVisibleTo(RhinoMocks.NormalName)]
5247
<member name="F:Rhino.Mocks.RhinoMocks.StrongName">
5249
Strong name for the Dynamic Proxy assemblies. Used for InternalsVisibleTo specification.
5252
<member name="F:Rhino.Mocks.RhinoMocks.NormalName">
5254
Normal name for dynamic proxy assemblies. Used for InternalsVisibleTo specification.
5257
<member name="F:Rhino.Mocks.RhinoMocks.Logger">
5259
Logs all method calls for methods
5262
<member name="T:Rhino.Mocks.SetupResult">
5264
Setup method calls to repeat any number of times.
5267
<member name="M:Rhino.Mocks.SetupResult.For``1(``0)">
5269
Get the method options and set the last method call to repeat
5270
any number of times.
5271
This also means that the method would transcend ordering
5274
<member name="M:Rhino.Mocks.SetupResult.On(System.Object)">
5276
Get the method options for the last method call on the mockInstance and set it
5277
to repeat any number of times.
5278
This also means that the method would transcend ordering
5281
<member name="T:Rhino.Mocks.Utilities.MethodCallUtil">
5283
Utility class for working with method calls.
5286
<member name="M:Rhino.Mocks.Utilities.MethodCallUtil.StringPresentation(Castle.Core.Interceptor.IInvocation,Rhino.Mocks.Utilities.MethodCallUtil.FormatArgumnet,System.Reflection.MethodInfo,System.Object[])">
5288
Return the string representation of a method call and its arguments.
5290
<param name="method">The method</param>
5291
<param name="args">The method arguments</param>
5292
<param name="invocation">Invocation of the method, used to get the generics arguments</param>
5293
<param name="format">Delegate to format the parameter</param>
5294
<returns>The string representation of this method call</returns>
5296
<member name="M:Rhino.Mocks.Utilities.MethodCallUtil.StringPresentation(Castle.Core.Interceptor.IInvocation,System.Reflection.MethodInfo,System.Object[])">
5298
Return the string representation of a method call and its arguments.
5300
<param name="invocation">The invocation of the method, used to get the generic parameters</param>
5301
<param name="method">The method</param>
5302
<param name="args">The method arguments</param>
5303
<returns>The string representation of this method call</returns>
5305
<member name="T:Rhino.Mocks.Utilities.MethodCallUtil.FormatArgumnet">
5307
Delegate to format the argument for the string representation of
5311
<member name="T:Rhino.Mocks.Utilities.ReturnValueUtil">
5313
Utility to get the default value for a type
5316
<member name="M:Rhino.Mocks.Utilities.ReturnValueUtil.DefaultValue(System.Type,Castle.Core.Interceptor.IInvocation)">
5318
The default value for a type.
5319
Null for reference types and void
5321
First element for enums
5322
Note that we need to get the value even for opened generic types, such as those from
5325
<param name="type">Type.</param>
5326
<param name="invocation">The invocation.</param>
5327
<returns>the default value</returns>
5329
<member name="T:Rhino.Mocks.With">
5331
Allows easier access to MockRepository, works closely with Mocker.Current to
5332
allow access to a context where the mock repository is automatially verified at
5333
the end of the code block.
5336
<member name="M:Rhino.Mocks.With.Mocks(Rhino.Mocks.With.Proc)">
5338
Initialize a code block where Mocker.Current is initialized.
5339
At the end of the code block, all the expectation will be verified.
5340
This overload will create a new MockRepository.
5342
<param name="methodCallThatHasMocks">The code that will be executed under the mock context</param>
5344
<member name="M:Rhino.Mocks.With.Mocks(Rhino.Mocks.MockRepository,Rhino.Mocks.With.Proc)">
5346
Initialize a code block where Mocker.Current is initialized.
5347
At the end of the code block, all the expectation will be verified.
5348
This overload will create a new MockRepository.
5350
<param name="mocks">The mock repository to use, at the end of the code block, VerifyAll() will be called on the repository.</param>
5351
<param name="methodCallThatHasMocks">The code that will be executed under the mock context</param>
5353
<member name="M:Rhino.Mocks.With.Mocks(Rhino.Mocks.MockRepository)">
5355
Create a FluentMocker
5357
<param name="mocks">The mock repository to use.</param>
5359
<member name="T:Rhino.Mocks.With.Proc">
5361
A method with no arguments and no return value that will be called under the mock context.
5364
<member name="T:Rhino.Mocks.With.FluentMocker">
5366
FluentMocker implements some kind of fluent interface attempt
5367
for saying "With the Mocks [mocks], Expecting (in same order) [things] verify [that]."
5370
<member name="T:Rhino.Mocks.With.IMockVerifier">
5372
Interface to verify previously defined expectations
5375
<member name="M:Rhino.Mocks.With.IMockVerifier.Verify(Rhino.Mocks.With.Proc)">
5377
Verifies if a piece of code
5380
<member name="M:Rhino.Mocks.With.FluentMocker.Expecting(Rhino.Mocks.With.Proc)">
5382
Defines unordered expectations
5384
<param name="methodCallsDescribingExpectations">A delegate describing the expectations</param>
5385
<returns>an IMockVerifier</returns>
5387
<member name="M:Rhino.Mocks.With.FluentMocker.ExpectingInSameOrder(Rhino.Mocks.With.Proc)">
5389
Defines ordered expectations
5391
<param name="methodCallsDescribingExpectations">A delegate describing the expectations</param>
5392
<returns>an IMockVerifier</returns>
5394
<member name="M:Rhino.Mocks.With.FluentMocker.Verify(Rhino.Mocks.With.Proc)">
5396
Verifies previously defined expectations
5399
<member name="T:Rhino.Mocks.Function`2">
5401
This delegate is compatible with the System.Func{T,R} signature
5402
We have to define our own to get compatability with 2.0
5405
<member name="T:__ProtectAttribute">
5407
This attribute is here so we can get better Pex integration
5408
Using this means that Pex will not try to inspect the work of
5409
the actual proxies being generated by Rhino Mocks