Esempio n. 1
0
        public void StringConstruction()
        {
            SFString a = "hello";
            string   b = a;

            Assert.AreEqual(a.ToString(), b);
            Assert.AreEqual(a, a.ToString());
        }
        public void SFString_Substring()
        {
            var firstSubstringSFString  = new SFString(TEST_STRING).Substring(0, 9);
            var secondSubstringSFString = new SFString(TEST_STRING).Substring(12);

            Assert.AreEqual(@"This 👉 is", firstSubstringSFString.ToString());
            Assert.AreEqual(@"test string with emojis 👨‍👩‍👧‍👧. Did you know that family emoji is just 4 emojis melt together?", secondSubstringSFString.ToString());
        }
        public void SFString_ToString()
        {
            var sfString = new SFString(TEST_STRING);

            Assert.AreEqual(TEST_STRING, sfString.ToString());
        }