Esempio n. 1
0
 public void Ctor_ExceptionTests(int starting, int maximum)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() =>
     {
         var item = new CappedItem(starting, maximum, null);
     });
 }
Esempio n. 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);
        }
Esempio n. 3
0
        public void CanAdd_Tests(int starting, int maximum, bool expected)
        {
            var item = new CappedItem(starting, maximum, null);

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