Exemple #1
0
        public void ReadonlyMemoryTest()
        {
            ReadOnlyMemory <string> source = ExpectedString.Split(' ');

            var actual = source.ToStringBuilder('\t');

            actual.Is(ExpectedString, " ", "\t");

            actual = source.ToStringBuilder("ばらし");
            actual.Is(ExpectedString, " ", "ばらし");
        }
Exemple #2
0
        public void ReadOnlyMemoryTest()
        {
            ReadOnlyMemory <char> source = ExpectedString.ToCharArray();
            var actual = source.ToStringBuilder();

            actual.Is(ExpectedString);
        }