work work ... haaaard work
This commit is contained in:
@@ -27,8 +27,8 @@ public sealed class PathScopeSimulationServiceTests
|
||||
var lines = await service.StreamAsync(request).ToListAsync();
|
||||
|
||||
Assert.Equal(2, lines.Count);
|
||||
Assert.Contains(lines[0], s => s.Contains("\"filePath\":\"a/file.js\""));
|
||||
Assert.Contains(lines[1], s => s.Contains("\"filePath\":\"b/file.js\""));
|
||||
Assert.Contains("\"filePath\":\"a/file.js\"", lines[0]);
|
||||
Assert.Contains("\"filePath\":\"b/file.js\"", lines[1]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -44,6 +44,7 @@ public sealed class PathScopeSimulationServiceTests
|
||||
Targets: Array.Empty<PathScopeTarget>(),
|
||||
Options: new SimulationOptions("path,finding,verdict", 100, IncludeTrace: true, Deterministic: true));
|
||||
|
||||
await Assert.ThrowsAsync<PathScopeSimulationException>(() => service.StreamAsync(request).ToListAsync());
|
||||
await Assert.ThrowsAsync<PathScopeSimulationException>(async () =>
|
||||
await service.StreamAsync(request).ToListAsync());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user