Exemple #1
0
        public void TryParse_should_not_move_offset_on_invalid_input()
        {
            var offset = 1;

            ExceptionFragment.TryParse(" %l", ref offset);

            offset.Should().Be(1);
        }
Exemple #2
0
        public void TryParse_should_move_offset_accordingly()
        {
            var offset = 1;

            ExceptionFragment.TryParse(" %e", ref offset);

            offset.Should().Be(3);
        }
Exemple #3
0
        public void TryParse_should_be_case_insensitive()
        {
            var offset = 1;

            ExceptionFragment.TryParse(" %E", ref offset).Should().NotBeNull();
        }
Exemple #4
0
        public void TryParse_should_return_null_on_invalid_input(string input)
        {
            var offset = 1;

            ExceptionFragment.TryParse(input, ref offset).Should().BeNull();
        }
Exemple #5
0
        public void TryParse_should_parse_fragment()
        {
            var offset = 1;

            ExceptionFragment.TryParse(" %e", ref offset).Should().Be(new ExceptionFragment());
        }