public void DsfBaseActivity_UpdateForEachOutputs_NullDoesNothing_DoesNothing() { //------------Setup for test-------------------------- var act = new MySimpleActivity { Input1 = "SomeText" }; //------------Execute Test--------------------------- act.UpdateForEachOutputs(null); //------------Assert Results------------------------- Assert.AreEqual("SomeText", act.Input1); }
public void DsfBaseActivity_UpdateForEachOutputs_UpdatesTextValue() { //------------Setup for test-------------------------- var act = new MySimpleActivity { Result = "SomeText" }; var tuple1 = new Tuple <string, string>("SomeText", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.Result); }
public void DsfBaseActivity_UpdateForEachOutputsMoreThanTwoItems_DoesNothing() { //------------Setup for test-------------------------- var act = new MySimpleActivity { Input1 = "SomeText" }; var tuple1 = new Tuple <string, string>("Test1", "Test"); var tuple2 = new Tuple <string, string>("Test2", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List <Tuple <string, string> > { tuple1, tuple2 }); //------------Assert Results------------------------- Assert.AreEqual("SomeText", act.Input1); }
public void DsfBaseActivity_UpdateForEachOutputs_UpdatesTextValue() { //------------Setup for test-------------------------- var act = new MySimpleActivity { Result = "SomeText" }; var tuple1 = new Tuple<string, string>("SomeText", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List<Tuple<string, string>> { tuple1 }); //------------Assert Results------------------------- Assert.AreEqual("Test", act.Result); }
public void DsfBaseActivity_UpdateForEachOutputsMoreThanTwoItems_DoesNothing() { //------------Setup for test-------------------------- var act = new MySimpleActivity { Input1 = "SomeText" }; var tuple1 = new Tuple<string, string>("Test1", "Test"); var tuple2 = new Tuple<string, string>("Test2", "Test"); //------------Execute Test--------------------------- act.UpdateForEachOutputs(new List<Tuple<string, string>> { tuple1, tuple2 }); //------------Assert Results------------------------- Assert.AreEqual("SomeText", act.Input1); }