Пример #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.");
 }
Пример #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.");
 }
Пример #3
0
 public override void SendChatMessage(string line)
 {
     var packet = new PChatLine
     {
         Nick = "You",
         Message = line
     };
     IncomingChatLine(packet);
     nc.Send(packet);
 }
Пример #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
                    });
        }
Пример #5
0
 public void PChatLineConstructorTest()
 {
     PChatLine target = new PChatLine();
     Assert.Inconclusive("TODO: Code zum Überprüfen des Ziels implementieren");
 }
Пример #6
0
 void IncomingChatLine(PChatLine packet)
 {
     Static.GameManager.DisplayLine(packet);
 }
Пример #7
0
 public void DisplayLine(PChatLine line)
 {
     Static.Renderer.AddChatHistory(line.ToString());
 }