private void ContaintMethodReturnsTrue() { //Arrange var dbMock = new Mock <TelegramBotContext>(); var changeName = new ChangeNameCommand(dbMock.Object); var message = new Message() { Text = "/changeName" }; //Act var result = changeName.IsContains(message); //Assert Assert.True(result); }
private void ContaintMethodReturnsFalse() { //Arrange var dbMock = new Mock <TelegramBotContext>(); var changeName = new ChangeNameCommand(dbMock.Object); var message = new Message() { Text = Guid.NewGuid().ToString() }; //Act var result = changeName.IsContains(message); //Assert Assert.False(result); }