def test_parse_path_at_second_level_returns_last_folder_as_project_name():
    container, relative = ide.parse_path(1, "C:/Projects/MySolution/MyProject")

    assert (container, relative) == ("MyProject", "")
def test_parse_path_at_higher_levels_returns_project_name_and_relative_path_to_it(level, path, expected):
    container, relative = ide.parse_path(level, path)
    assert (container, relative) == expected
def test_parse_path_at_first_level_returns_last_folder_name():
    container, relative = ide.parse_path(0, "C:/Projects/MySolution")

    assert (container, relative) == ("MySolution", "")