public void AddPlayerTest() { Tournament target = new Tournament(); // TODO: Initialize to an appropriate value Player player = null; // TODO: Initialize to an appropriate value target.AddPlayer(player); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public TournamentViewModel() { CurrentTournament = new Tournament(); Players = new ObservableCollection<PlayerViewModel>(); Games = new ObservableCollection<GameViewModel>(); Messenger.Default.Register<NotificationMessage>(this, NotificationMessageReceived); InitCommands(); }
public TournamentViewModel(Tournament tournament, string path) { CurrentTournament = tournament; _path = path; Players = new ObservableCollection<PlayerViewModel>(); Games = new ObservableCollection<GameViewModel>(); Messenger.Default.Register<NotificationMessage>(this, NotificationMessageReceived); _hasBeenSavedAs = true; InitTournament(); InitCommands(); }
public DummyContext() { Tournament = new Tournament(); }
public void SaveTournamentAsXML(Tournament tournament, string path) { TextWriter textWriter = new StreamWriter(path); serializer.Serialize(textWriter, tournament); textWriter.Close(); }
public void TournamentConstructorTest() { Tournament target = new Tournament(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void PlayersTest() { Tournament target = new Tournament(); // TODO: Initialize to an appropriate value List<Player> expected = null; // TODO: Initialize to an appropriate value List<Player> actual; target.Players = expected; actual = target.Players; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void PairUpTest() { Tournament target = new Tournament(); // TODO: Initialize to an appropriate value target.PairUp(); Assert.Inconclusive("A method that does not return a value cannot be verified."); }
public void NameTest() { Tournament target = new Tournament(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.Name = expected; actual = target.Name; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void Initialize() { DummyContext context = new DummyContext(); Tournament = context.Tournament; }
public void DoesPlayerExistInTournamentTest() { Tournament target = new Tournament(); // TODO: Initialize to an appropriate value Player player = null; // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.DoesPlayerExistInTournament(player); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }