Exemple #1
0
 public void SerializeTest()
 {
     PChatLine target = new PChatLine(); // TODO: Passenden Wert initialisieren
     BinaryWriter writer = null; // TODO: Passenden Wert initialisieren
     target.Serialize(writer);
     Assert.Inconclusive("Eine Methode, die keinen Wert zurückgibt, kann nicht überprüft werden.");
 }
Exemple #2
0
 public void ToStringTest()
 {
     PChatLine target = new PChatLine(); // TODO: Passenden Wert initialisieren
     string expected = string.Empty; // TODO: Passenden Wert initialisieren
     string actual;
     actual = target.ToString();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Überprüfen Sie die Richtigkeit dieser Testmethode.");
 }
 public override void SendChatMessage(string line)
 {
     var packet = new PChatLine
     {
         Nick = "You",
         Message = line
     };
     IncomingChatLine(packet);
     nc.Send(packet);
 }
Exemple #4
0
        void pChatLine(NetworkClient nc, PChatLine u)
        {
            if (!isLoggedIn(nc))
                throw new Exception("Not logged in.");

            string nick = clientList[nc].Username;
            foreach (var node in clientList.AsEnumerable)
                if (node.Key != nc)
                    node.Key.Send(new PChatLine
                    {
                        Nick = nick,
                        Message = u.Message
                    });
        }
Exemple #5
0
 public void PChatLineConstructorTest()
 {
     PChatLine target = new PChatLine();
     Assert.Inconclusive("TODO: Code zum Überprüfen des Ziels implementieren");
 }
 void IncomingChatLine(PChatLine packet)
 {
     Static.GameManager.DisplayLine(packet);
 }
Exemple #7
0
 public void DisplayLine(PChatLine line)
 {
     Static.Renderer.AddChatHistory(line.ToString());
 }