Esempio n. 1
0
 public void Electrification_Constructor_BitWise(int BitWise, bool Diesel, bool OverHead, bool ThirdRail)
 {
     GroundFrame.Core.Electrification TestElectrification = new GroundFrame.Core.Electrification((ElectrificationBitValue)BitWise);
     Assert.Equal(Diesel, TestElectrification.Diesel);
     Assert.Equal(OverHead, TestElectrification.Overhead);
     Assert.Equal(ThirdRail, TestElectrification.ThirdRail);
 }
Esempio n. 2
0
 public void Electrification_Constructor_SimSigCode(string SimSigCode, bool ExpectedOverhead, bool Expected3rdRail, bool Expected4thRail, bool Sim4)
 {
     GroundFrame.Core.Electrification TestElectrification = new GroundFrame.Core.Electrification(SimSigCode);
     Assert.Equal(ExpectedOverhead, TestElectrification.Overhead);
     Assert.Equal(Expected3rdRail, TestElectrification.ThirdRail);
     Assert.Equal(Expected4thRail, TestElectrification.FourthRail);
     Assert.Equal(Sim4, TestElectrification.Sim4);
 }
Esempio n. 3
0
 public void Electrification_Property_BitWise(string SimSigCode, int BitWise)
 {
     GroundFrame.Core.Electrification TestElectrification = new GroundFrame.Core.Electrification(SimSigCode);
     Assert.Equal(BitWise, TestElectrification.BitWise);
 }