public void gettting_without_last_bit_should_act_only_on_folder_and_file_part( string firstPart, string result) { Path.GetPathWithoutLastBit(firstPart) .Should().Be(new Path(result)); }