Class InputTestFixture.ActionConstraint
Implements
IConstraint
IResolveConstraint
Inherited Members
Constraint.ApplyTo<TActual>(ActualValueDelegate<TActual>)
Constraint.ApplyTo<TActual>(ref TActual)
Constraint.GetTestObject<TActual>(ActualValueDelegate<TActual>)
Constraint.ToString()
Constraint.GetStringRepresentation()
Constraint.DisplayName
Constraint.Description
Constraint.Arguments
Constraint.Builder
Constraint.And
Constraint.With
Constraint.Or
Namespace: UnityEngine.InputSystem
Assembly: Unity.InputSystem.TestFramework.dll
Syntax
public class InputTestFixture.ActionConstraint : Constraint, IConstraint, IResolveConstraint
Constructors
ActionConstraint(InputActionPhase, InputAction, InputControl, object, Type, double?, double?)
Declaration
public ActionConstraint(InputActionPhase phase, InputAction action, InputControl control, object value = null, Type interaction = null, double? time = null, double? duration = null)
Parameters
Type | Name | Description |
---|---|---|
InputActionPhase | phase | |
InputAction | action | |
InputControl | control | |
object | value | |
Type | interaction | |
double? | time | |
double? | duration |
Properties
action
Declaration
public InputAction action { get; set; }
Property Value
Type | Description |
---|---|
InputAction |
control
Declaration
public InputControl control { get; set; }
Property Value
Type | Description |
---|---|
InputControl |
duration
Declaration
public double? duration { get; set; }
Property Value
Type | Description |
---|---|
double? |
interaction
Declaration
public Type interaction { get; set; }
Property Value
Type | Description |
---|---|
Type |
phase
Declaration
public InputActionPhase phase { get; set; }
Property Value
Type | Description |
---|---|
InputActionPhase |
time
Declaration
public double? time { get; set; }
Property Value
Type | Description |
---|---|
double? |
value
Declaration
public object value { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
AndThen(ActionConstraint)
Declaration
public InputTestFixture.ActionConstraint AndThen(InputTestFixture.ActionConstraint constraint)
Parameters
Type | Name | Description |
---|---|---|
InputTestFixture.ActionConstraint | constraint |
Returns
Type | Description |
---|---|
InputTestFixture.ActionConstraint |
ApplyTo(object)
Declaration
public override ConstraintResult ApplyTo(object actual)
Parameters
Type | Name | Description |
---|---|---|
object | actual |
Returns
Type | Description |
---|---|
ConstraintResult |
Overrides
Implements
NUnit.Framework.Constraints.IConstraint
NUnit.Framework.Constraints.IResolveConstraint