Exemplo n.º 1
0
 public void Enumeration_ThrowsException_IfAddingElement()
 {
     Assert.Throws <InvalidOperationException>(() =>
     {
         foreach (var _ in _three)
         {
             _three.Add(4);
         }
     });
 }
Exemplo n.º 2
0
        public void Add_AddsNewElement_ToEmptyHeap()
        {
            _empty.Add(1);

            Assert.IsTrue(_empty.Contains(1));
        }