public void RecieveMessageTest() { // arrange var target = new SmsController(); const string key = "givemeaccesstotoyou"; const string gateway = "GETWAY1"; const string @from = "BelSwissBank"; var to = string.Empty; const string message = @"4..3855 ATM Uspeshno 2011-10-15 13:38:09 Summa: 200000 BYR Ostatok: 333887 BYR Na vremya: 13:38:16 BLR/MINSK/ATMMMB HO19 CUM MINSK"; // act var actual = target.RecieveMessage(key, gateway, from, to, message); // assert Assert.AreEqual("ok", actual); }