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

    Class TestHelpers

    Inheritance
    Object
    TestHelpers
    Namespace: UnityEngine.Localization.SmartFormat.Tests.TestUtils
    Syntax
    public static class TestHelpers

    Methods

    PerformanceTest(Func<String, Object[], String>[], String, Object[], Int32)

    Declaration
    public static TimeSpan[] PerformanceTest(Func<string, object[], string>[] doFormats, string format, object[] args, int iterations)
    Parameters
    Type Name Description
    Func<String, Object[], String>[] doFormats
    String format
    Object[] args
    Int32 iterations
    Returns
    Type Description
    TimeSpan[]

    Test(SmartFormatter, String, Object[], String)

    Declaration
    public static void Test(this SmartFormatter formatter, string format, object[] args, string expected)
    Parameters
    Type Name Description
    SmartFormatter formatter
    String format
    Object[] args
    String expected

    Test(SmartFormatter, String, Object[][], String[])

    Declaration
    public static void Test(this SmartFormatter formatter, string format, object[][] bunchOfArgs, string[] bunchOfExpected)
    Parameters
    Type Name Description
    SmartFormatter formatter
    String format
    Object[][] bunchOfArgs
    String[] bunchOfExpected

    Test(SmartFormatter, String[], Object[], String[])

    Declaration
    public static void Test(this SmartFormatter formatter, string[] bunchOfFormat, object[] args, string[] bunchOfExpected)
    Parameters
    Type Name Description
    SmartFormatter formatter
    String[] bunchOfFormat
    Object[] args
    String[] bunchOfExpected
    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