public string AddIntegers (ObservableCollection <string> IntegerStrings) { if (IntegerStrings != null) { this.IntegerStrings = IntegerStrings; } IntegerConversionResult = AddIntegerValues.Compute(IntegerStrings); if (IntegerConversionResult.IsConverted == true) { TotalValue = IntegerConversionResult.ConvertedValue.ToString(); } return(TotalValue); }
public void ConfirmThatOnlyTwoTextValuesWereEntered() { bool ResultActual; IntegerStrings.Add("20"); IntegerStrings.Add("30"); Integer64ConversionResult = AddInteger.Compute(IntegerStrings); ResultActual = Integer64ConversionResult.IsConverted; Assert.IsTrue(ResultActual); }