forked from Manuel/meeting-assistant
ci: validate portable tests on macos
This commit is contained in:
@@ -7,16 +7,16 @@ public sealed class VaultPathTests
|
||||
[Fact]
|
||||
public void ResolveUsesVaultBaseFolderForRelativePaths()
|
||||
{
|
||||
var baseFolder = Path.Combine(Path.GetTempPath(), "meeting-assistant-vault");
|
||||
var vault = new VaultOptions
|
||||
{
|
||||
BaseFolder = @"C:\Users\masc3\OpenCloud\Persönlich\Vault\Exxeta"
|
||||
BaseFolder = baseFolder
|
||||
};
|
||||
|
||||
var resolved = VaultPath.Resolve(vault, @"Meetings\Transcripts");
|
||||
var relativePath = Path.Combine("Meetings", "Transcripts");
|
||||
var resolved = VaultPath.Resolve(vault, relativePath);
|
||||
|
||||
Assert.Equal(
|
||||
@"C:\Users\masc3\OpenCloud\Persönlich\Vault\Exxeta\Meetings\Transcripts",
|
||||
resolved);
|
||||
Assert.Equal(Path.Combine(baseFolder, relativePath), resolved);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -24,11 +24,12 @@ public sealed class VaultPathTests
|
||||
{
|
||||
var vault = new VaultOptions
|
||||
{
|
||||
BaseFolder = @"C:\Users\masc3\OpenCloud\Persönlich\Vault\Exxeta"
|
||||
BaseFolder = Path.Combine(Path.GetTempPath(), "meeting-assistant-vault")
|
||||
};
|
||||
var absolutePath = Path.Combine(Path.GetTempPath(), "meeting-assistant-other");
|
||||
|
||||
var resolved = VaultPath.Resolve(vault, @"C:\Other\Path");
|
||||
var resolved = VaultPath.Resolve(vault, absolutePath);
|
||||
|
||||
Assert.Equal(@"C:\Other\Path", resolved);
|
||||
Assert.Equal(absolutePath, resolved);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user