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