public override Fragment GetItem(int position)
        {
            artworkManager.MoveTo(position);
            var frag = new ArtworkFragment();

            frag.Artwork = artworkManager.CurrentArtwork;

            return(frag);
        }
Esempio n. 2
0
        public void Manager_WhenJumpToIndexToBig_ShouldThrowOutOfIndexOutOfRange()
        {
            var manager   = new ArtworkManager();
            var afterLast = manager.Length;

            try
            {
                manager.MoveTo(afterLast);
                Assert.Fail("Should not be able to move to Index greater than last");
            }
            catch (Exception e)
            {
                StringAssert.Contains(e.Message, ArtworkManager.OUT_OF_RANGE_INDEX);
            }
        }