async Task TestColor(string text, string color) { var result = await colorParser.ParseAsync(null, null, new ChatMessage { UserInput = text }); var colorResult = result.Answer as ColorResult; Assert.AreEqual(colorResult.Name, color); }
async Task TestColor(string text, string color) { var result = await colorParser.ParseAsync(null, null, new ChatMessage { UserInput = text }); var colorResult = result.Answer as ColorResult; Assert.AreEqual(colorResult.Name, color); }