public void Sets_Zero_Values_If_Parameter_Not_Tracked() { var tuple = TimesBuilders.ReturnMockLists(); var labels = tuple.Item1; var values = tuple.Item2; Times outputTimes = FspTimesParser.ParseTimes(labels, values); Times expectedTimes = Builders.TimesBuilders.ReturnTimesAllZeroButAircraftId(); // Using CompareNetObjects to compare the two objects var compareLogic = new CompareLogic(); Assert.True(compareLogic.Compare(expectedTimes, outputTimes).AreEqual); }
public void Trims_Trailing_Text_If_Necessary(string label, string value, decimal expectedNum) { // Create the lists to pass in, the labels and values must be at index 1 var tuple = TimesBuilders.ReturnMockLists(); var labels = tuple.Item1; labels.Add(label); var values = tuple.Item2; values.Add(value); Times timeValues = FspTimesParser.ParseTimes(labels, values); Assert.Equal((decimal)expectedNum, timeValues.AircraftTotal); }