public void DsfCommentActivity_UpdateForEachOutputs_NullDoesNothing_DoesNothing()
        {
            //------------Setup for test--------------------------
            var act = new DsfCommentActivity {
                Text = "SomeText"
            };

            //------------Execute Test---------------------------
            act.UpdateForEachOutputs(null);
            //------------Assert Results-------------------------
            Assert.AreEqual("SomeText", act.Text);
        }
        public void DsfCommentActivity_UpdateForEachOutputs_UpdatesTextValue()
        {
            //------------Setup for test--------------------------
            var act = new DsfCommentActivity {
                Text = "SomeText"
            };
            var tuple1 = new Tuple <string, string>("Test1", "Test");

            //------------Execute Test---------------------------
            act.UpdateForEachOutputs(new List <Tuple <string, string> > {
                tuple1
            });
            //------------Assert Results-------------------------
            Assert.AreEqual("Test", act.Text);
        }
        public void DsfCommentActivity_UpdateForEachOutputsMoreThanTwoItems_DoesNothing()
        {
            //------------Setup for test--------------------------
            var act = new DsfCommentActivity {
                Text = "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.Text);
        }
Example #4
0
 public void DsfCommentActivity_UpdateForEachOutputs_NullDoesNothing_DoesNothing()
 {
     //------------Setup for test--------------------------
     var act = new DsfCommentActivity { Text = "SomeText" };
     //------------Execute Test---------------------------
     act.UpdateForEachOutputs(null);
     //------------Assert Results-------------------------
     Assert.AreEqual("SomeText", act.Text);
 }
Example #5
0
 public void DsfCommentActivity_UpdateForEachOutputs_UpdatesTextValue()
 {
     //------------Setup for test--------------------------
     var act = new DsfCommentActivity { Text = "SomeText" };
     var tuple1 = new Tuple<string, string>("Test1", "Test");
     //------------Execute Test---------------------------
     act.UpdateForEachOutputs(new List<Tuple<string, string>> { tuple1 });
     //------------Assert Results-------------------------
     Assert.AreEqual("Test", act.Text);
 }
Example #6
0
 public void DsfCommentActivity_UpdateForEachOutputsMoreThanTwoItems_DoesNothing()
 {
     //------------Setup for test--------------------------
     var act = new DsfCommentActivity { Text = "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.Text);
 }