2.2 KiB
2.2 KiB
title | page_title | description | previous_url | slug | published | fullPath | category |
---|---|---|---|---|---|---|---|
SetupStatic(T) Method (Behavior) | SetupStatic(T) Method (Behavior) | JustMock Documentation | Documentation page about SetupStatic(T) Method (Behavior). | /m_telerik_justmock_mock_setupstatic__1_1.html | m_telerik_justmock_mock_setupstatic__1_1 | True | api/n_telerik_justmock/t_telerik_justmock_mock/methods_t_telerik_justmock_mock/overload_telerik_justmock_mock_setupstatic/m_telerik_justmock_mock_setupstatic__1_1 | api |
Mock.SetupStatic<T>Method (Behavior)
Setups the target for mocking all static calls.
Namespace: Telerik.JustMock
Assembly: Telerik.JustMock(in Telerik.JustMock.dll)
Syntax
C# |
---|
public static void SetupStatic<T>( Behavior behavior ) |
Visual Basic |
---|
Public Shared Sub SetupStatic(Of T) ( _ behavior As Behavior _ ) |
behavior
Type: Telerik.JustMock.Behavior
Specifies behavior of the mock. Default is RecursiveLoose
Type Parameters
T
Target type
Remarks
Considers all public members of the class. To mock private member, please use the private interface Mock.NonPublic