Exemplo n.º 1
0
        public void Should_be_cleared()
        {
            // Arrange
            // Act
            _sut.Clear();

            // Assert
            Assert.Empty(_sut);
        }
Exemplo n.º 2
0
        public void TestBinaryTreeClear()
        {
            // arrange
            var binaryTree = new BinaryTree <int> {
                8, 5, 12, 3, 7, 10, 15
            };

            // act
            binaryTree.Clear();
            // assert
            Assert.AreEqual(binaryTree.Count, 0);
        }