System.Globalization.Tests.IdnMappingGetAsciiTests.GetAscii C# (CSharp) Method

GetAscii() private method

private GetAscii ( string unicode, int index, int count, string expected ) : void
unicode string
index int
count int
expected string
return void
        public void GetAscii(string unicode, int index, int count, string expected)
        {
            if (index + count == unicode.Length)
            {
                if (index == 0)
                {
                    Assert.Equal(expected, new IdnMapping().GetAscii(unicode));
                }
                Assert.Equal(expected, new IdnMapping().GetAscii(unicode, index));
            }
            Assert.Equal(expected, new IdnMapping().GetAscii(unicode, index, count));
        }