Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Book book = new Book("Fairy tale", 1250);

            Console.WriteLine(book.Title + " " + book.Year);
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public void TestConstructor()
        {
            book = new Book(_titleRight, _minYear);

            Assert.AreEqual("A fairy tale", book.Title);
            Assert.AreEqual(_minYear, book.Year);
        }
Exemplo n.º 3
0
 public void TestConstructorShortTitle()
 {
     book = new Book(_titleShort, _minYear);
 }
Exemplo n.º 4
0
 public void TestConstructorIncorrectYear()
 {
     book = new Book(_titleRight, _minYear-1);
 }
Exemplo n.º 5
0
 public void BeforeTest()
 {
     book = new Book();
 }