public void ShouldTrimExcess() { // arrange var target = new ObservableStack<string>( 10 ); target.Push( "1" ); target.Push( "2" ); target.Push( "3" ); // act target.TrimExcess(); // assert // no exception }