mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add test test
This commit is contained in:
parent
25dcb48858
commit
5bfac9971a
@ -115,4 +115,19 @@ public class AbsolutePathTests
|
|||||||
};
|
};
|
||||||
Assert.Equal(data3, data2);
|
Assert.Equal(data3, data2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void CanGetThisAndAllParents()
|
||||||
|
{
|
||||||
|
var path = @"c:\foo\bar\baz.zip".ToAbsolutePath();
|
||||||
|
var subPaths = new[]
|
||||||
|
{
|
||||||
|
@"c:\",
|
||||||
|
@"C:\foo",
|
||||||
|
@"c:\foo\Bar",
|
||||||
|
@"c:\foo\bar\baz.zip"
|
||||||
|
}.Select(f => f.ToAbsolutePath());
|
||||||
|
|
||||||
|
Assert.Equal(subPaths.OrderBy(f => f), path.ThisAndAllParents().OrderBy(f => f).ToArray());
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user