コード例 #1
0
        public void Test_GetStringWithCommonChars1_IsEmpty()
        {
            Q3 objInterview = new Q3();

            char[] ch1      = "".ToCharArray();
            char[] ch2      = "".ToCharArray();
            string expected = "";
            string actual   = objInterview.GetStringWithCommonChars1(ch1, ch2);

            Assert.AreEqual(actual, expected);
        }
コード例 #2
0
        public void Test_GetStringWithCommonChars1_IsNull()
        {
            Q3 objInterview = new Q3();

            char[] ch1      = null;
            char[] ch2      = null;
            string expected = "";
            string actual   = objInterview.GetStringWithCommonChars1(ch1, ch2);

            Assert.AreEqual(actual, expected);
        }