AetheriaStores.Open: a missing catalog throws FileNotFoundException
The test assembly registers a catalog [CultGlobal], so the global check already threw on a missing
file there and AStoreRefusesAMissingCatalog passed against the old Open (run at fe9da2e: 12 passed).
The refusal is now a FileNotFoundException naming the path, and the test pins that type, which the
global check never throws. Builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
387404c6ea
commit
1521c68a79
2 changed files with 3 additions and 2 deletions
|
|
@ -209,7 +209,8 @@ public sealed class AetheriaStoresTests : IDisposable
|
|||
{
|
||||
var missing = Path.Combine(_root, "absent", "Aetheria.cc");
|
||||
|
||||
var error = Assert.Throws<InvalidOperationException>(() => AetheriaStores.Open(missing));
|
||||
// FileNotFoundException, not the catalog-global check: that one also throws on a missing file whenever a global is registered.
|
||||
var error = Assert.Throws<FileNotFoundException>(() => AetheriaStores.Open(missing));
|
||||
Assert.Contains(missing, error.Message);
|
||||
Assert.False(File.Exists(missing));
|
||||
Assert.False(Directory.Exists(Path.GetDirectoryName(missing)));
|
||||
|
|
|
|||
Loading…
Reference in a new issue