Example #1
0
    public void ReverseEmptyText()
    {
        string testString = string.Empty;
        string result     = LocalizationTable.ReverseString(testString);

        Assert.AreEqual(result, string.Empty);
    }
Example #2
0
    public void ReverseNullText()
    {
        string testString = null;
        string result     = LocalizationTable.ReverseString(testString);

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

        Assert.AreEqual(result, "{2} slauqe {1} + {0}");
    }
Example #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");
    }
Example #5
0
    public void ReverseText()
    {
        string testString = "testing";
        string result     = LocalizationTable.ReverseString(testString);

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