string myString = "Hello World!"; TestUtility.AssertContains(myString, "World"); //pass TestUtility.AssertContains(myString, "world"); //fail
ListThe TestUtility package library is not a standard library in C#. It is likely a custom library created by the developer or team for testing purposes.myList = new List { 1, 2, 3, 4 }; TestUtility.AssertContains(myList, 3); //pass TestUtility.AssertContains(myList, 5); //fail