public void DsfWebGetRequestActivity_UpdateForEachInputs_NullUpdates_DoesNothing() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestActivity { Url = Url, Result = result }; //------------Execute Test--------------------------- act.UpdateForEachInputs(null); //------------Assert Results------------------------- Assert.AreEqual(Url, act.Url); }
public void DsfWebGetRequestActivity_UpdateForEachInputs_MoreThan1Updates_Updates() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestActivity { Url = Url, Result = result }; var tuple1 = new Tuple <string, string>("Test", "Test"); var tuple2 = new Tuple <string, string>(Url, "Test2"); //------------Execute Test--------------------------- act.UpdateForEachInputs(new List <Tuple <string, string> > { tuple1, tuple2 }); //------------Assert Results------------------------- Assert.AreEqual("Test2", act.Url); }
public void DsfWebGetRequestActivity_UpdateForEachInputs_MoreThan1Updates_Updates() { //------------Setup for test-------------------------- const string Url = "[[CompanyName]]"; const string result = "[[res]]"; var act = new DsfWebGetRequestActivity { Url = Url, Result = result }; var tuple1 = new Tuple<string, string>("Test", "Test"); var tuple2 = new Tuple<string, string>(Url, "Test2"); //------------Execute Test--------------------------- act.UpdateForEachInputs(new List<Tuple<string, string>> { tuple1, tuple2 }); //------------Assert Results------------------------- Assert.AreEqual("Test2", act.Url); }