Esempio n. 1
0
 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.");
 }
Esempio n. 2
0
        public TournamentViewModel()
        {
            CurrentTournament = new Tournament();

            Players = new ObservableCollection<PlayerViewModel>();
            Games = new ObservableCollection<GameViewModel>();
            Messenger.Default.Register<NotificationMessage>(this, NotificationMessageReceived);
            InitCommands();
        }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 public DummyContext()
 {
     Tournament = new Tournament();
 }
Esempio n. 5
0
 public void SaveTournamentAsXML(Tournament tournament, string path)
 {
     TextWriter textWriter = new StreamWriter(path);
     serializer.Serialize(textWriter, tournament);
     textWriter.Close();
 }
Esempio n. 6
0
 public void TournamentConstructorTest()
 {
     Tournament target = new Tournament();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Esempio n. 7
0
 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.");
 }
Esempio n. 8
0
 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.");
 }
Esempio n. 9
0
 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.");
 }
Esempio n. 10
0
 public void Initialize()
 {
     DummyContext context = new DummyContext();
     Tournament = context.Tournament;
 }
Esempio n. 11
0
 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.");
 }