Exemplo n.º 1
0
        public void CanDetectReprint()
        {
            IComicVineReprintDetector reprintDetector = new ComicVineReprintDetector();
            Volume volume = new Volume();

            volume.collectable = true;
            volume.description = "reprints spider-man 1 to 650";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "this is a tradepaperback";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "tpb of spider-man 1 to 650";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "a hardcover book which reprints spider-man 1 to 650";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "spider-man trade paperback of 1 to 650";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "reprints spider-man 1 to 650";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
            volume.collectable = true;
            volume.description = "collects blue beetle 4 through 7";
            Assert.IsTrue(reprintDetector.DetectReprint(volume));
            Assert.IsFalse(volume.collectable);
        }
Exemplo n.º 2
0
        public void CanDetectIfNotReprint()
        {
            IComicVineReprintDetector reprintDetector = new ComicVineReprintDetector();
            Volume volume = new Volume();

            volume.collectable = true;
            volume.description = "this is the amazing spider-man";
            Assert.IsFalse(reprintDetector.DetectReprint(volume));
            Assert.IsTrue(volume.collectable);
        }
Exemplo n.º 3
0
 public void CanDetectIfNotReprint()
 {
     IComicVineReprintDetector reprintDetector = new ComicVineReprintDetector();
     Volume volume = new Volume();
     volume.collectable = true;
     volume.description = "this is the amazing spider-man";
     Assert.IsFalse(reprintDetector.DetectReprint(volume));
     Assert.IsTrue(volume.collectable);
 }
Exemplo n.º 4
0
 public void CanDetectReprint()
 {
     IComicVineReprintDetector reprintDetector = new ComicVineReprintDetector();
     Volume volume = new Volume();
     volume.collectable = true;
     volume.description = "reprints spider-man 1 to 650";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "this is a tradepaperback";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "tpb of spider-man 1 to 650";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "a hardcover book which reprints spider-man 1 to 650";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "spider-man trade paperback of 1 to 650";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "reprints spider-man 1 to 650";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
     volume.collectable = true;
     volume.description = "collects blue beetle 4 through 7";
     Assert.IsTrue(reprintDetector.DetectReprint(volume));
     Assert.IsFalse(volume.collectable);
 }