Class ClientUnitTest
Base class for all unit tests depending upon a MinimalClient connecting to a server.
Inheritance
System.Object
ClientUnitTest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.NetcodeUnitTest
Assembly: UE4DotNet.dll
Syntax
public class ClientUnitTest : ProcessUnitTest
Remarks
The MinimalClient handles creation/cleanup of an entire new UWorld, UNetDriver and UNetConnection, for fast unit testing.
NOTE: See NUTEnum.h, for important flags for configuring unit tests and the minimal client.
In subclasses, implement the unit test within the ExecuteClientUnitTest function (remembering to call parent)
Properties
| Improve this Doc View SourceDefaultObject
Get UE4 Default Object for this Class
Declaration
public static ClientUnitTest DefaultObject { get; }
Property Value
Type | Description |
---|---|
ClientUnitTest |
MinClient
The object which handles implementation of the minimal client
Declaration
public MinimalClient MinClient { get; set; }
Property Value
Type | Description |
---|---|
MinimalClient |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static ClientUnitTest New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
ClientUnitTest |
Operators
| Improve this Doc View SourceImplicit(IntPtr to ClientUnitTest)
Convert from IntPtr to UObject
Declaration
public static implicit operator ClientUnitTest(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
ClientUnitTest |