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

    Class ChooseFormatterTests

    Inheritance
    Object
    ChooseFormatterTests
    Namespace: UnityEngine.Localization.SmartFormat.Tests.Extensions
    Syntax
    public class ChooseFormatterTests

    Methods

    Choose_has_a_special_case_for_null(String, Object, String)

    Declaration
    public void Choose_has_a_special_case_for_null(string format, object arg0, string expectedResult)
    Parameters
    Type Name Description
    String format
    Object arg0
    String expectedResult

    Choose_should_be_case_sensitive(String, Object, String)

    Declaration
    public void Choose_should_be_case_sensitive(string format, object arg0, string expectedResult)
    Parameters
    Type Name Description
    String format
    Object arg0
    String expectedResult

    Choose_should_default_to_the_last_item(String, Object, String)

    Declaration
    public void Choose_should_default_to_the_last_item(string format, object arg0, string expectedResult)
    Parameters
    Type Name Description
    String format
    Object arg0
    String expectedResult

    Choose_should_work_with_enums(String, Object, String)

    Declaration
    public void Choose_should_work_with_enums(string format, object arg0, string expectedResult)
    Parameters
    Type Name Description
    String format
    Object arg0
    String expectedResult

    Choose_should_work_with_numbers_strings_and_booleans(String, Object, String)

    Declaration
    public void Choose_should_work_with_numbers_strings_and_booleans(string format, object arg0, string expectedResult)
    Parameters
    Type Name Description
    String format
    Object arg0
    String expectedResult

    Choose_throws_when_choice_is_invalid(String, Object)

    Declaration
    public void Choose_throws_when_choice_is_invalid(string format, object arg0)
    Parameters
    Type Name Description
    String format
    Object arg0

    Choose_throws_when_choices_are_too_few_or_too_many(String, Object)

    Declaration
    public void Choose_throws_when_choices_are_too_few_or_too_many(string format, object arg0)
    Parameters
    Type Name Description
    String format
    Object arg0
    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