private void timer1_Tick(object sender, EventArgs e)
 {
     SimcorpMobile.Model.Message Msg =
         new SimcorpMobile.Model.Message("User" + i, "message #" + i + " received", DateTime.Now);
     OnSMSReceived(Msg.Text);
     SMSStorage.AddMessage(SMSStorage.DataBase, Msg);
     i++;
 }
Exemple #2
0
        public void Test_NewMessageAddedToStorage()
        {
            //Act
            SMSStorage.AddMessage("Message1");

            //Assert
            Assert.IsTrue(SMSStorage.messages.Contains("Message1"));
        }