public void DsfCountRecordsetActivity_UpdateForEachOutputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- const string recordsetName = "[[Customers()]]"; var act = new DsfCountRecordsetNullHandlerActivity { RecordsetName = recordsetName, CountNumber = "[[res]]" }; //------------Execute Test--------------------------- act.UpdateForEachOutputs(null); //------------Assert Results------------------------- Assert.AreEqual(recordsetName, act.RecordsetName); }
public void DsfCountRecordsetActivity_UpdateForEachOutputs_1Updates_UpdateCountNumber() { //------------Setup for test-------------------------- const string recordsetName = "[[Customers()]]"; var act = new DsfCountRecordsetNullHandlerActivity { RecordsetName = recordsetName, CountNumber = "[[res]]" }; var tuple1 = new Tuple <string, string>("[[res]]", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.CountNumber); }