예제 #1
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);
        }
예제 #2
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);
        }
예제 #3
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);
        }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }