Matching constant values with custom patterns
Hi,
does anybody know how I can match constant values with custom patterns? I'd like to assure that params are invoked correctly in assertions.
Example:
Assert.AreEqual(SomeMethod(), "constant value");
should be replaced with
Assert.AreEqual("constant value", SomeMethod());
Somehow I don't manage to find the right pattern..
Kind Regards & thanks in advance
Please sign in to leave a comment.