コード例 #1
0
                public void ShouldReturnInvalidOperationException()
                {
                    var    queue  = new QueueAdt <int>();
                    Action action = () => queue.Peek();

                    action.Should().Throw <InvalidOperationException>();
                }
コード例 #2
0
                public void PeekFirstAdded()
                {
                    queue = new QueueAdt <int>();
                    queue.Add(firstAdded);
                    queue.Add(2);
                    startCount = queue.Count;

                    valuePicked = queue.Peek();
                }
コード例 #3
0
 public void AddToQueue()
 {
     queue = new QueueAdt <int>();
     queue.Add(1);
 }
コード例 #4
0
 public void ShouldStartWithCountZero()
 {
     queue = new QueueAdt <int>();
     queue.Count.Should().Be(0);
 }