Click or drag to resize
ClockMock Class
A mock implementation of IClock.
Inheritance Hierarchy
SystemObject
  Mock
    MockIClock
      Test.FrameworkClockMock

Namespace: Test.Framework
Assembly: Test.Framework (in Test.Framework.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class ClockMock : Mock<IClock>

The ClockMock type exposes the following members.

Constructors
  NameDescription
Public methodClockMock
Creates a new object.
Top
Properties
  NameDescription
Public propertyBehavior (Inherited from Mock.)
Public propertyCallBase (Inherited from Mock.)
Public propertyDefaultValue (Inherited from Mock.)
Public propertyLocalNowValue
Gets or sets the value of the LocalNow property.
Public propertyObject (Inherited from MockIClock.)
Public propertyUtcNowValue
Gets or sets the value of the UtcNow property.
Top
Methods
  NameDescription
Public methodAddMilliseconds
Advances UtcNowValue and LocalNowValue by so-many milliseconds.
Public methodAs``1 (Inherited from Mock.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExpect(ExpressionActionUTP) Obsolete. (Inherited from MockIClock.)
Public methodExpect(ExpressionActionUTP) Obsolete. (Inherited from MockIClock.)
Public methodExpectGet``1 Obsolete. (Inherited from MockIClock.)
Public methodExpectSet``1(ExpressionFuncUTP, UMP) Obsolete. (Inherited from MockIClock.)
Public methodExpectSet``1(ExpressionFuncUTP, UMP, UMP) Obsolete. (Inherited from MockIClock.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnGetObject (Inherited from MockIClock.)
Public methodRaise(ActionUTP, EventArgs) (Inherited from MockIClock.)
Public methodRaise(ActionUTP, Object) (Inherited from MockIClock.)
Public methodSetReturnsDefault``1 (Inherited from Mock.)
Public methodSetup(ExpressionActionUTP) (Inherited from MockIClock.)
Public methodSetup(ExpressionActionUTP) (Inherited from MockIClock.)
Public methodSetupAllProperties (Inherited from MockIClock.)
Public methodSetupGet``1 (Inherited from MockIClock.)
Public methodSetupProperty``1(ExpressionFuncUTP, UMP) (Inherited from MockIClock.)
Public methodSetupProperty``1(ExpressionFuncUTP, UMP, UMP) (Inherited from MockIClock.)
Public methodSetupSet``1 (Inherited from MockIClock.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerify (Inherited from Mock.)
Public methodVerify(ExpressionActionUTP) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, Times) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, String) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, Times, String) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, Times) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, String) (Inherited from MockIClock.)
Public methodVerify(ExpressionActionUTP, Times, String) (Inherited from MockIClock.)
Public methodVerifyAll (Inherited from Mock.)
Public methodVerifyGet``1(ExpressionFuncUTP, UMP) (Inherited from MockIClock.)
Public methodVerifyGet``1(ExpressionFuncUTP, UMP, Times) (Inherited from MockIClock.)
Public methodVerifyGet``1(ExpressionFuncUTP, UMP, String) (Inherited from MockIClock.)
Public methodVerifyGet``1(ExpressionFuncUTP, UMP, Times, String) (Inherited from MockIClock.)
Public methodVerifySet(ActionUTP) (Inherited from MockIClock.)
Public methodVerifySet(ActionUTP, Times) (Inherited from MockIClock.)
Public methodVerifySet(ActionUTP, String) (Inherited from MockIClock.)
Public methodVerifySet(ActionUTP, Times, String) (Inherited from MockIClock.)
Public methodWhen (Inherited from MockIClock.)
Top
See Also