public void TestJoinerClearClearsString() { var joiner = new StringJoiner(""); joiner.Append("a"); joiner.Clear(); Assert.AreEqual(string.Empty, joiner.ToString()); }
public void TestJoinerDoesntThrowsOnClearIfDefaultCtor() { var joiner = new StringJoiner(); Assert.DoesNotThrow(() => joiner.Clear()); }