Пример #1
0
    public void ReverseEmptyText()
    {
        string testString = string.Empty;
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, string.Empty);
    }
Пример #2
0
    public void ReverseNullText()
    {
        string testString = null;
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, null);
    }
Пример #3
0
    public void ReverseTextWithMultipleParameters()
    {
        string testString = "{0} + {1} equals {2}";
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, "{2} slauqe {1} + {0}");
    }
Пример #4
0
    public void ReverseTextWithMultipleDigitParameter()
    {
        string testString = "I am {10} yrs old";
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, "dlo sry {10} ma I");
    }
Пример #5
0
    public void ReverseText()
    {
        string testString = "testing";
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, "gnitset");
    }