示例#1
0
        public static void TestInsertSuffixOnlyIfAbsent()
        {
            OrderableStrings strings = new OrderableStrings
            {
                "LLA",
                "YA",
                { "UT", -3 }
            };

            strings.InsertSuffix("A", true);

            Assert.AreEqual("LLA,YA,UTA", strings.ToString());
        }
示例#2
0
        public static void TestInsertSuffix()
        {
            OrderableStrings strings = new OrderableStrings
            {
                "LL",
                "Y",
                { "UT", -3 }
            };

            strings.InsertSuffix("A");

            Assert.AreEqual("LLA,YA,UTA", strings.ToString());
        }