O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Verifying String Conditions with StringAssert

The StringAssert class provides various methods for verifying the contents of strings:

Image ContainsVerifies that a string contains a specified substring.

Image Matches and DoesNotMatchUses a regular expression to verify that the specified string matches, or does not match, a specified pattern.

Image StartsWith and EndsWithVerifies that a string starts or ends with a specified string.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required