public static void GetLastSegmentTest(string path, string expected) { var u8Path = path.ToU8String(); ReadOnlySpan <byte> fileName = PathTools.GetLastSegment(u8Path); string actual = StringUtils.Utf8ZToString(fileName); Assert.Equal(expected, actual); }