Exemplo n.º 1
0
        internal static string ToString(CollationAlternate alternate)
        {
            switch (alternate)
            {
            case CollationAlternate.NonIgnorable: return("non-ignorable");

            case CollationAlternate.Shifted: return("shifted");

            default: throw new ArgumentException($"Invalid alternate: {alternate}.", nameof(alternate));
            }
        }
Exemplo n.º 2
0
        public void ToString_with_alternate_should_return_expected_result(CollationAlternate alternate, string expectedResult)
        {
            var result = Collation.ToString(alternate);

            result.Should().Be(expectedResult);
        }
        public void ToString_with_alternate_should_return_expected_result(CollationAlternate alternate, string expectedResult)
        {
            var result = Collation.ToString(alternate);

            result.Should().Be(expectedResult);
        }
Exemplo n.º 4
0
        public void ToCollationAlternate_should_return_expected_result(string value, CollationAlternate expectedResult)
        {
            var result = Collation.ToCollationAlternate(value);

            result.Should().Be(expectedResult);
        }
        public void ToCollationAlternate_should_return_expected_result(string value, CollationAlternate expectedResult)
        {
            var result = Collation.ToCollationAlternate(value);

            result.Should().Be(expectedResult);
        }