Exemple #1
0
        public async Task GetAnswer_NullQuestion_Success()
        {
            var result = await _target.GetAnswerAsync(null);


            var expected = "Не задан вопрос";

            Assert.AreEqual(expected, result);
        }
Exemple #2
0
        public async Task GetAnswer_Answer_Success()
        {
            var question = "hi";


            var answer = await _target.GetAnswerAsync(question);


            Assert.NotNull(answer);
        }