Пример #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);
 }