示例#1
0
        public void ConcatStringsTest3()
        {
            EntityUtils target   = new EntityUtils();
            string      actual   = target.ConcatStrings(" ");
            string      expected = "";

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void ConcatStringsTest4()
        {
            EntityUtils target   = new EntityUtils();
            string      name     = "JustOneString";
            string      actual   = target.ConcatStrings(" ", name);
            string      expected = name;

            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void ConcatStringsTest2()
        {
            EntityUtils target   = new EntityUtils();
            string      s1       = null;
            string      s2       = "String 2";
            string      s3       = null;
            string      actual   = target.ConcatStrings(s1, s2, s3);
            string      expected = s2;

            Assert.AreEqual(expected, actual);
        }
示例#4
0
        public void ConcatStringsTest1()
        {
            EntityUtils target   = new EntityUtils();
            string      s1       = "S1";
            string      s2       = "S2";
            string      s3       = "S3";
            string      actual   = target.ConcatStrings(".", s1, s2, s3);
            string      expected = "S1.S2.S3";

            Assert.AreEqual(expected, actual);
        }