MoreAsserts.AssertNotMatchesRegex Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AssertNotMatchesRegex(String, String) |
Variant of |
AssertNotMatchesRegex(String, String, String) |
Asserts that |
AssertNotMatchesRegex(String, String)
Variant of #assertNotMatchesRegex(String,String,String)
using a
generic message.
[Android.Runtime.Register("assertNotMatchesRegex", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public static void AssertNotMatchesRegex (string? expectedRegex, string? actual);
[<Android.Runtime.Register("assertNotMatchesRegex", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
static member AssertNotMatchesRegex : string * string -> unit
Parameters
- expectedRegex
- String
- actual
- String
- Attributes
Remarks
Variant of #assertNotMatchesRegex(String,String,String)
using a generic message.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
AssertNotMatchesRegex(String, String, String)
Asserts that expectedRegex
does not exactly match actual
,
and fails with message
if it does.
[Android.Runtime.Register("assertNotMatchesRegex", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")]
public static void AssertNotMatchesRegex (string? message, string? expectedRegex, string? actual);
[<Android.Runtime.Register("assertNotMatchesRegex", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "")>]
static member AssertNotMatchesRegex : string * string * string -> unit
Parameters
- message
- String
- expectedRegex
- String
- actual
- String
- Attributes
Remarks
Asserts that expectedRegex
does not exactly match actual
, and fails with message
if it does. Note that you can also use this for a literal string, by wrapping your expected string in Pattern#quote
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.