示例#1
0
 public void ImplementationSubDirPath()
 {
     ImplementationStoreUtils.IsImplementation(WindowsUtils.IsWindows ? @"C:\some\dir\sha1new=123\subdir" : "/some/dir/sha1new=123/subdir", out string?path)
     .Should().BeTrue();
     path.Should().Be(WindowsUtils.IsWindows ? @"C:\some\dir\sha1new=123" : "/some/dir/sha1new=123");
 }
示例#2
0
 public void NotImplementationPath()
 {
     ImplementationStoreUtils.IsImplementation(WindowsUtils.IsWindows ? @"C:\some\dir" : "/some/dir", out _)
     .Should().BeFalse();
 }