Class UnrealHelpersTests
Class for testing UnrealHelpers methods.
Inherited Members
Namespace: Microsoft.XboxStudios.GameStateTracker.Tests
Assembly: GameStateTracker.Tests.dll
Syntax
[TestClass]
public class UnrealHelpersTests
Methods
View SourceTestExtractTextWithInvTextMacro()
Verify that ExtractText(string) returns a valid text using the INVTEXT macro.
Declaration
[TestMethod]
public void TestExtractTextWithInvTextMacro()
TestExtractTextWithInvalidTextReturnsOriginal()
Verify that ExtractText(string) returns the original string when no valid text was supplied.
Declaration
[TestMethod]
public void TestExtractTextWithInvalidTextReturnsOriginal()
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 |
TestParseGameplayAttributeWithInvalidBaseValueReturnsNull()
Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns a null base value with an invalid input value.
Declaration
[TestMethod]
public void TestParseGameplayAttributeWithInvalidBaseValueReturnsNull()
TestParseGameplayAttributeWithInvalidCurrentValueReturnsNull()
Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns a null current value with an invalid input value.
Declaration
[TestMethod]
public void TestParseGameplayAttributeWithInvalidCurrentValueReturnsNull()
TestParseGameplayAttributeWithValidValues()
Verify that ParseGameplayAttributeData(string, IFormatProvider?) returns the correct base and current values.
Declaration
[TestMethod]
public void TestParseGameplayAttributeWithValidValues()