Class ParserTests | Localization | 0.6.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ParserTests

    Inheritance
    Object
    ParserTests
    Namespace: UnityEngine.Localization.SmartFormat.Tests.Core
    Syntax
    public class ParserTests

    Methods

    Name_of_registered_NamedFormatter_will_be_parsed(String, String, String, String)

    Declaration
    public void Name_of_registered_NamedFormatter_will_be_parsed(string format, string expectedName, string expectedOptions, string expectedFormat)
    Parameters
    Type Name Description
    String format
    String expectedName
    String expectedOptions
    String expectedFormat

    Name_of_unregistered_NamedFormatter_will_not_be_parsed()

    Declaration
    public void Name_of_unregistered_NamedFormatter_will_not_be_parsed()

    NamedFormatter_should_be_null_when_empty_or_invalid_or_escaped(String)

    Declaration
    public void NamedFormatter_should_be_null_when_empty_or_invalid_or_escaped(string format)
    Parameters
    Type Name Description
    String format

    NamedFormatter_should_be_null_when_has_nesting(String, String)

    Declaration
    public void NamedFormatter_should_be_null_when_has_nesting(string format, string expectedLiteralText)
    Parameters
    Type Name Description
    String format
    String expectedLiteralText

    Nested_format_with_alternative_escaping()

    Declaration
    public void Nested_format_with_alternative_escaping()

    Parser_Exception_ErrorDescription()

    Declaration
    public void Parser_Exception_ErrorDescription()

    Parser_Ignores_Exceptions()

    Declaration
    public void Parser_Ignores_Exceptions()

    Parser_NotifyParsingError()

    Declaration
    public void Parser_NotifyParsingError()

    Parser_Throws_Exceptions()

    Declaration
    public void Parser_Throws_Exceptions()

    Parser_UseAlternativeBraces()

    Declaration
    public void Parser_UseAlternativeBraces()

    Test_Format_Alignment()

    Declaration
    public void Test_Format_Alignment()

    Test_Format_IndexOf()

    Declaration
    public void Test_Format_IndexOf()

    Test_Format_Split()

    Declaration
    public void Test_Format_Split()

    Test_Format_Substring()

    Declaration
    public void Test_Format_Substring()

    Test_Formatter_Name_And_Options()

    Declaration
    public void Test_Formatter_Name_And_Options()

    TestParser()

    Declaration
    public void TestParser()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023