Class TestHelpers | Localization | 0.5.1-preview
docs.unity.cn
    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 © 2019 Unity Technologies
    Generated by DocFX