示例#1
0
        public void TestJoinerClearClearsString()
        {
            var joiner = new StringJoiner("");

            joiner.Append("a");
            joiner.Clear();
            Assert.AreEqual(string.Empty, joiner.ToString());
        }
示例#2
0
        public void TestJoinerDoesntThrowsOnClearIfDefaultCtor()
        {
            var joiner = new StringJoiner();

            Assert.DoesNotThrow(() => joiner.Clear());
        }