예제 #1
0
        public void Not_added_item_cannot_be_removed()
        {
            // setup
            var router = new FifoItemRouter <int>();

            router.Route(0, 0);

            // execute

            var result = router.Remove(1);

            // verify
            result.Should().BeFalse();
        }
예제 #2
0
        public void Added_item_can_be_removed()
        {
            // setup
            var router = new FifoItemRouter <int>();

            router.Route(0, 0);

            // execute

            var result = router.Remove(0);

            // verify
            result.Should().BeTrue();
        }