public void WhenSetPlayEvent_ThenToStringMethodOverriden() { PlayEventTicket amazingGame = new PlayEventTicket(_price, _place, _dateOfEvent, _gameName); Assert.True(amazingGame.ToString().Contains("Game name: CS 1.6")); }
public void WhenSetEvent_ThenToStringMethodOverriden() { PlayEventTicket amazingGame = new PlayEventTicket(_price, _place, _dateOfEvent, _gameName); Assert.True(amazingGame.ToString().Contains($"Price: {_price}\nPlace: {_place}\nDate of event: {_dateOfEvent}\nEvent type: {amazingGame.EventType}")); }