mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
Say only what a tail coupler does: end signals or none
The simulator reads the last vehicle's coupler for one thing, whether to put up the end signals. It does not couple the train to anything behind it, as the tooltip and a comment claimed.
This commit is contained in:
@@ -18,8 +18,8 @@ public class CouplerLookTests
|
||||
[Theory]
|
||||
[InlineData("0", CouplerState.EndSignals)]
|
||||
[InlineData("0.BP", CouplerState.EndSignals)]
|
||||
[InlineData("3", CouplerState.CoupledBehind)]
|
||||
[InlineData("-7", CouplerState.CoupledBehind)]
|
||||
[InlineData("3", CouplerState.NoEndSignals)]
|
||||
[InlineData("-7", CouplerState.NoEndSignals)]
|
||||
public void The_back_of_the_train_gets_end_signals_only_at_0(string code, CouplerState expected) =>
|
||||
Assert.Equal(expected, CouplerLook.StateOf(Coupling.Parse(code), trailing: true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user