Exemplo n.º 1
0
        public void GetMessageFromMessageBoard()
        {
            MessageBoard b = MessageBoard.GetMessageBoard(Api, Settings.TestProject, Settings.TestMessageBoard).Result;
            Message      m = RunTest(b.GetMessage(Api, Settings.TestMessage));

            Assert.AreEqual(Settings.TestMessage, m.id);
        }
Exemplo n.º 2
0
        public void GetComments()
        {
            MessageBoard      b        = MessageBoard.GetMessageBoard(Api, Settings.TestProject, Settings.TestMessageBoard).Result;
            Message           m        = b.GetMessage(Api, Settings.TestMessage).Result;
            ApiList <Comment> comments = RunTest(m.GetComments(Api));

            Assert.IsTrue(comments.All(Api).Any(c => c.id == Settings.TestComment));
        }
Exemplo n.º 3
0
    public abstract void TurnReset();       // reset any variables when turn increases

    public Message ReadFromMessageBoard()
    {
        if (theBoard != null)
        {
            return(theBoard.GetMessage(this.gameObject.GetInstanceID()));
        }
        else
        {
            return(null);
        }
    }