public void TryParse_should_not_move_offset_on_invalid_input() { var offset = 1; NewLineFragment.TryParse(" %d", ref offset); offset.Should().Be(1); }
public void TryParse_should_move_offset_accordingly() { var offset = 1; NewLineFragment.TryParse(" %n", ref offset); offset.Should().Be(3); }
public void TryParse_should_be_case_insensitive() { var offset = 1; NewLineFragment.TryParse(" %N", ref offset).Should().NotBeNull(); }
public void TryParse_should_return_null_on_invalid_input(string input) { var offset = 1; NewLineFragment.TryParse(input, ref offset).Should().BeNull(); }
public void TryParse_should_parse_fragment() { var offset = 1; NewLineFragment.TryParse(" %n", ref offset).Should().Be(new NewLineFragment()); }