Exemplo n.º 1
0
 public void GenreInstanceOK()
 {
     //create an instance of the class
     Genre NewGenre = new Genre();
     //test to see if that exists
     Assert.IsNotNull(NewGenre);
 }
Exemplo n.º 2
0
        public void GenreLastNameMaximumPlusOne()
        {
            Genre NewGenre = new Genre();
            Boolean valid = false;
            int GenreId = 1;
            string Name = new string('A', Genre.textMaximumLength + 1);

            valid = NewGenre.Valid(GenreId, Name);
        }
Exemplo n.º 3
0
        public void GenreLastNameExtremeMinimumLength()
        {
            Genre NewGenre = new Genre();
            Boolean valid = false;
            int GenreId = 1;
            string Name = new string('A', Genre.textExtremeMin);

            valid = NewGenre.Valid(GenreId, Name);
        }
Exemplo n.º 4
0
        public void GenreLastNameMaximumMinusOne()
        {
            Genre NewGenre = new Genre();
            Boolean valid = false;
            int GenreId = 1;
            string Name = new string('A', Genre.textMaximumLength - 1);

            valid = NewGenre.Valid(GenreId, Name);
            Assert.IsTrue(valid);
        }
Exemplo n.º 5
0
        public void GenreNameOk()
        {
            //create an instance of the class
            Genre NewGenre = new Genre();

            string TestGenreName = "Johnson";
            NewGenre.GenreName = TestGenreName;
            //test to see if that exists
            Assert.AreEqual(NewGenre.GenreName, TestGenreName);
        }