static void Main(string[] args) { Book book = new Book("Fairy tale", 1250); Console.WriteLine(book.Title + " " + book.Year); Console.ReadKey(); }
public void TestConstructor() { book = new Book(_titleRight, _minYear); Assert.AreEqual("A fairy tale", book.Title); Assert.AreEqual(_minYear, book.Year); }
public void TestConstructorShortTitle() { book = new Book(_titleShort, _minYear); }
public void TestConstructorIncorrectYear() { book = new Book(_titleRight, _minYear-1); }
public void BeforeTest() { book = new Book(); }