예제 #1
0
        public void ConcatStringsTest_EmptyStrings_Success()
        {
            //Arrange
            var value1 = string.Empty;
            var value2 = string.Empty;

            //Act
            var actual = StringLibrary.ConcatStrings(value1, value2);

            //Assert
            Assert.AreEqual(string.Empty, actual);
        }
예제 #2
0
        public void ConcatStringsTest_NullStrings_Success()
        {
            //Arrange
            string value1 = null;
            string value2 = null;

            //Act
            var actual = StringLibrary.ConcatStrings(value1, value2);

            //Assert
            Assert.AreEqual(string.Empty, actual);
        }
예제 #3
0
        public void ConcatStringsTest_SomeStrings_Success()
        {
            //Arrange
            var value1 = "value1";
            var value2 = "value2";

            //Act
            var actual = StringLibrary.ConcatStrings(value1, value2);

            //Assert
            Assert.AreEqual("value1value2", actual);
        }