public void ValidateNoTOLdgPerfFileSelectedShouldPass() { var manager = new AcConfigManager(); var txt = AircraftConfigItem.NoFuelTOLdgProfileText; manager.Add(new AircraftConfig( new AircraftConfigItem("B777-300ER", "B-12345", txt, txt, txt, 123456.0, 234567.0, 345678.0, 456789.0, 567890.0, 1.0, WeightUnit.KG), "path")); Assert.IsNull(manager.Validate( new FuelData[0], new List <TOCalc.PerfTable>(), new List <LdgCalc.PerfTable>())); }
public void ValidateFileDoesNotExistShouldReturnError() { var manager = new AcConfigManager(); manager.Add(config1); Assert.IsNotNull(manager.Validate( new FuelData[0], new TOTable[0], new LdgTable[0])); }
public void ValidateFileExistShouldPass() { var manager = new AcConfigManager(); manager.Add(config1); var fuelTable = new FuelData(null, "Boeing 777-300ER", ""); var toFile = new QSP.TOPerfCalculation.Entry("Boeing 777-300ER", ""); var toTable = new TOTable(null, toFile); var ldgFile = new QSP.LandingPerfCalculation.Entry("Boeing 777-300ER", ""); var ldgTable = new LdgTable(null, ldgFile); Assert.IsNull(manager.Validate( new[] { fuelTable }, new[] { toTable }, new[] { ldgTable })); }