示例#1
0
 public void Ctor_ExceptionTests(int starting, int maximum)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() =>
     {
         var item = new CappedItem(starting, maximum, null);
     });
 }
示例#2
0
        public void Remove_Tests(int starting, int maximum, int expected)
        {
            var item = new CappedItem(starting, maximum, null);

            item.Remove();

            Assert.Equal(expected, item.Current);
        }
示例#3
0
        public void CanAdd_Tests(int starting, int maximum, bool expected)
        {
            var item = new CappedItem(starting, maximum, null);

            Assert.Equal(expected, item.CanAdd());
        }