I'm using XUnit with this code to check string if contains a character in an array of string but it doesn't work. How can I fix this?
char[] chars = {'a','b','c'};
string value = "Hello";
Assert.Contains(value,chars);
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Salman BegRank #284 · 8.8K reputationPosted Apr 27, 2021, 1:36 PM EDT