Class WebGLLocalizationReflectionReaderTests
Characterization tests for Serenity.Global.Infrastructure.Editor.Utils.WebGL.WebGLLocalizationReflectionReader, which reads Unity Localization's tables by property name so the exporter never has to bind that package as a type.
Inherited Members
Namespace: Serenity.Global.Tests.Editor.WebGL
Assembly: Tests.Editor.dll
Syntax
public class WebGLLocalizationReflectionReaderTests
Remarks
Stand-ins are used deliberately rather than real StringTable instances: the reader's contract is
that it reads whatever carries the right property shape, and a test that needed the package installed
would be testing the package instead of the reader.
Constructors
WebGLLocalizationReflectionReaderTests()
Declaration
public WebGLLocalizationReflectionReaderTests()
Methods
ExtractLocaleCode_ALocaleWithNoCode_YieldsNothing()
Declaration
public void ExtractLocaleCode_ALocaleWithNoCode_YieldsNothing()
ExtractLocaleCode_ATableCarryingALocale_YieldsItsCode()
Declaration
public void ExtractLocaleCode_ATableCarryingALocale_YieldsItsCode()
ExtractLocaleCode_ATableWithNoLocale_YieldsNothing()
Declaration
public void ExtractLocaleCode_ATableWithNoLocale_YieldsNothing()
ReadEnumerableProperty_APresentSequence_IsRead()
Declaration
public void ReadEnumerableProperty_APresentSequence_IsRead()
ReadEnumerableProperty_APropertyThatIsNotASequence_ReadsAsAbsent()
Declaration
public void ReadEnumerableProperty_APropertyThatIsNotASequence_ReadsAsAbsent()
ReadEnumerableProperty_AnAbsentPropertyOrNullTarget_ReadsAsAbsent()
Declaration
public void ReadEnumerableProperty_AnAbsentPropertyOrNullTarget_ReadsAsAbsent()
ReadStringProperty_ANullTarget_ReadsAsAbsent()
Declaration
public void ReadStringProperty_ANullTarget_ReadsAsAbsent()
ReadStringProperty_APresentStringProperty_IsRead()
Declaration
public void ReadStringProperty_APresentStringProperty_IsRead()
ReadStringProperty_APropertyOfTheWrongType_ReadsAsAbsent()
Declaration
public void ReadStringProperty_APropertyOfTheWrongType_ReadsAsAbsent()
ReadStringProperty_AThrowingGetter_ReadsAsAbsent()
Declaration
public void ReadStringProperty_AThrowingGetter_ReadsAsAbsent()
ReadStringProperty_AnAbsentOrUnnamedProperty_ReadsAsAbsent(string)
Declaration
public void ReadStringProperty_AnAbsentOrUnnamedProperty_ReadsAsAbsent(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |