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

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