Exemplo n.º 1
0
        public void check5()
        {
            // arrange
            string x        = "5-02-013850-9";
            bool   expected = true;
            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }
Exemplo n.º 2
0
        public void check4()
        {
            // arrange
            string x        = "5-06-002611-5";
            bool   expected = false;
            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }
Exemplo n.º 3
0
        public void check3()
        {
            // arrange
            string x        = "966-7343-29-4";
            bool   expected = true;

            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }
Exemplo n.º 4
0
        public void digits9()
        {
            // arrange
            string x        = "0-7475-3269";
            bool   expected = false;

            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }
Exemplo n.º 5
0
        public void Check2()
        {
            // arrange
            string x        = "0-7475-3269-9";
            bool   expected = true;

            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }
Exemplo n.º 6
0
        public void Check1()
        {
            // arrange
            string x        = "0-1000-0010-X";
            bool   expected = true;

            // act
            bool total = ISBNcheck.Valid(x);

            // assert
            Assert.AreEqual(expected, total);
        }