2.9 KiB
2.9 KiB
title | page_title | description | previous_url | slug | published | fullPath | category |
---|---|---|---|---|---|---|---|
SetupStatic Method (Type, Behavior, StaticConstructor) | SetupStatic Method (Type, Behavior, StaticConstructor) | JustMock Documentation | Documentation page about SetupStatic Method (Type, Behavior, StaticConstructor). | /m_telerik_justmock_mock_setupstatic_2.html | m_telerik_justmock_mock_setupstatic_2 | True | api/n_telerik_justmock/t_telerik_justmock_mock/methods_t_telerik_justmock_mock/overload_telerik_justmock_mock_setupstatic/m_telerik_justmock_mock_setupstatic_2 | api |
Mock.SetupStatic Method (Type, Behavior, StaticConstructor)
Setups the target for mocking all static calls.
Namespace: Telerik.JustMock
Assembly: Telerik.JustMock(in Telerik.JustMock.dll)
Syntax
C# |
---|
public static void SetupStatic( Type targetType, Behavior behavior, StaticConstructor staticConstructor ) |
Visual Basic |
---|
Public Shared Sub SetupStatic ( _ targetType As Type, _ behavior As Behavior, _ staticConstructor As StaticConstructor _ ) |
targetType
Type: System.Type
Target type
behavior
Type: Telerik.JustMock.Behavior
Specifies behavior of the mock. Default is RecursiveLoose
staticConstructor
Type: Telerik.JustMock.StaticConstructor
Defines the behavior of the static constructor