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

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