예제 #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();
 }