Exemplo n.º 1
0
    public void ToConventionTest()
    {
        var input    = @"custom Field 2 - Value";
        var expected = "CustomField2Value";

        var tc = ConvertPascalConventionWithNumbers.ToConvention(input);

        Assert.Equal(expected, tc);
    }
Exemplo n.º 2
0
    public void FromToPascalWithNumbersTest()
    {
        var input = "hello world";
        var to    = ConvertPascalConventionWithNumbers.ToConvention(input);
        var from  = ConvertPascalConventionWithNumbers.FromConvention(to);

        input = SH.FirstCharUpper(input);

        Assert.Equal(input, from);
    }