Show / Hide Table of Contents

Class UnrealHelpersTests

Class for testing UnrealHelpers methods.

Inheritance
object
UnrealHelpersTests
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Tests
Assembly: GameStateTracker.Tests.dll
Syntax
[TestClass]
public class UnrealHelpersTests

Methods

View Source

TestExtractTextWithInvTextMacro()

Verify that ExtractText(string) returns a valid text using the INVTEXT macro.

Declaration
[TestMethod]
public void TestExtractTextWithInvTextMacro()
View Source

TestExtractTextWithInvalidTextReturnsOriginal()

Verify that ExtractText(string) returns the original string when no valid text was supplied.

Declaration
[TestMethod]
public void TestExtractTextWithInvalidTextReturnsOriginal()
View Source

TestExtractTextWithNslocMacro(string, string, string)

Verify that ExtractText(string) returns a valid text using the NSLOC macro.

Declaration
[TestMethod]
[DataRow(new object?[] { "Namespace", "Key", "Value" })]
[DataRow(new object?[] { "", "Key", "Value" })]
public void TestExtractTextWithNslocMacro(string @namespace, string key, string value)
Parameters
Type Name Description
string namespace
string key
string value
View Source

TestParseGameplayAttributeWithInvalidBaseValueReturnsNull()

Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns a null base value with an invalid input value.

Declaration
[TestMethod]
public void TestParseGameplayAttributeWithInvalidBaseValueReturnsNull()
View Source

TestParseGameplayAttributeWithInvalidCurrentValueReturnsNull()

Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns a null current value with an invalid input value.

Declaration
[TestMethod]
public void TestParseGameplayAttributeWithInvalidCurrentValueReturnsNull()
View Source

TestParseGameplayAttributeWithValidValues()

Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns the correct base and current values.

Declaration
[TestMethod]
public void TestParseGameplayAttributeWithValidValues()
  • View Source
In this article
Back to top Generated by DocFX