Geni Lou

Geni Lou

  • NA
  • 101
  • 24.2k

Assert check string if contains a character in an array of string

Apr 27 2021 12:28 PM
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);
 
 
 

Answers (1)