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