public void DsfDataSplitActivity_UpdateForEachOutputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- IList <DataSplitDTO> resultsCollection = new List <DataSplitDTO> { new DataSplitDTO("[[CompanyName]]", "Index", "2", 1) }; var act = new DsfDataSplitActivity { SourceString = "[[CompanyName]]", ResultsCollection = resultsCollection }; //------------Execute Test--------------------------- act.UpdateForEachOutputs(null); //------------Assert Results------------------------- Assert.AreEqual("[[CompanyName]]", act.SourceString); }
public void DsfDataSplitActivity_UpdateForEachOutputs_1Updates_UpdateCountNumber() { //------------Setup for test-------------------------- IList <DataSplitDTO> resultsCollection = new List <DataSplitDTO> { new DataSplitDTO("[[CompanyName]]", "Index", "2", 1) }; var act = new DsfDataSplitActivity { SourceString = "[[CompanyName]]", ResultsCollection = resultsCollection }; var tuple1 = new Tuple <string, string>("[[CompanyName]]", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.ResultsCollection[0].OutputVariable); }
public void DsfDataSplitActivity_UpdateForEachOutputs_1Updates_UpdateCountNumber() { //------------Setup for test-------------------------- IList<DataSplitDTO> resultsCollection = new List<DataSplitDTO> { new DataSplitDTO("[[CompanyName]]", "Index", "2", 1) }; var act = new DsfDataSplitActivity { SourceString = "[[CompanyName]]", ResultsCollection = resultsCollection }; var tuple1 = new Tuple<string, string>("[[CompanyName]]", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List<Tuple<string, string>> { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.ResultsCollection[0].OutputVariable); }
public void DsfDataSplitActivity_UpdateForEachOutputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- IList<DataSplitDTO> resultsCollection = new List<DataSplitDTO> { new DataSplitDTO("[[CompanyName]]", "Index", "2", 1) }; var act = new DsfDataSplitActivity { SourceString = "[[CompanyName]]", ResultsCollection = resultsCollection }; //------------Execute Test--------------------------- act.UpdateForEachOutputs(null); //------------Assert Results------------------------- Assert.AreEqual("[[CompanyName]]", act.SourceString); }