mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-12 09:04:09 +01:00
Black box: the test of an older recording's light pattern checks the lights were judged
This commit is contained in:
@@ -131,7 +131,9 @@ public class HeadCodeTests
|
|||||||
var f = new BlackBoxFile().Info();
|
var f = new BlackBoxFile().Info();
|
||||||
for (double t = 0; t < 30; t += 0.5)
|
for (double t = 0; t < 30; t += 0.5)
|
||||||
f.Cab(t, 1, 1000 + t * 10, 40, lightsHead: Pc1, lightsTail: 0x40, movement: 1, hintTail: 0x22);
|
f.Cab(t, 1, 1000 + t * 10, 40, lightsHead: Pc1, lightsTail: 0x40, movement: 1, hintTail: 0x22);
|
||||||
Assert.Empty(BlackBoxReader.Read(f.End(30).Stream()).Summarize().LightsFaults);
|
var summary = BlackBoxReader.Read(f.End(30).Stream()).Summarize();
|
||||||
|
Assert.True(summary.LightsJudgedSeconds > 25);
|
||||||
|
Assert.Empty(summary.LightsFaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in New Issue
Block a user