Beispiel #1
0
 public void TestGetChatFromListByUnexistingChatID()
 {
     //Arrange
     initDB();
     //Act
     IrisLib.Chat chat2 = expectedDatabase.GetChatFromList(6);
     //Assert
     Assert.IsNull(chat2);
 }
Beispiel #2
0
 public void TestGetChatFromListByExistingChatID()
 {
     //Arrange
     initDB();
     //Act
     IrisLib.Chat chat1 = expectedDatabase.GetChatFromList(5);
     //Assert
     Assert.IsNotNull(chat1);
 }
Beispiel #3
0
 public void TestGetChatFromListByNull()
 {
     //Arrange
     initDB();
     //Act
     IrisLib.Chat chat5 = expectedDatabase.GetChatFromList(null);
     //Assert
     Assert.IsNull(chat5);
 }
Beispiel #4
0
 public void TestGetChatFromListByNonexistingChatName()
 {
     //Arrange
     initDB();
     //Act
     IrisLib.Chat chat4 = expectedDatabase.GetChatFromList("Galanthus");
     //Assert
     Assert.IsNull(chat4);
 }
Beispiel #5
0
 public void TestGetChatFromListByExistingChatName()
 {
     //Arrange
     initDB();
     //Act
     IrisLib.Chat chat3 = expectedDatabase.GetChatFromList("Violet");
     //Assert
     Assert.IsNotNull(chat3);
 }
Beispiel #6
0
 public System.Threading.Tasks.Task CreateNewChatAsync(IrisLib.User sender, IrisLib.Chat chat)
 {
     return(base.Channel.CreateNewChatAsync(sender, chat));
 }
Beispiel #7
0
 public void CreateNewChat(IrisLib.User sender, IrisLib.Chat chat)
 {
     base.Channel.CreateNewChat(sender, chat);
 }