public void TrimExcess() { stos = new StosWTablicy <char>(); stos.Push(RandomElement); stos.Push(RandomElement); stos.Push(RandomElement); stos.Push(RandomElement); stos.Clear(); stos.TrimExcess(); Assert.AreEqual(0, stos.Count); }