Skip to content

Instantly share code, notes, and snippets.

@pwelter34
Last active January 15, 2025 16:16
Show Gist options
  • Save pwelter34/b41d590d600ea952655ddc2067367063 to your computer and use it in GitHub Desktop.
Save pwelter34/b41d590d600ea952655ddc2067367063 to your computer and use it in GitHub Desktop.
Regex Replacement for FluentAssertions
([\w._]+)\.Should\(\)\.NotBeNull\(\)
Assert.NotNull($1)
([\w._]+)\.Should\(\)\.NotBeEmpty\(\)
Assert.NotEmpty($1)
([\w.!_]+)\.Should\(\)\.Be\(([\w.!_" ]+)\)
Assert.Equal($2, $1)
([\w._]+)\.Should\(\)\.BeTrue\(\)
Assert.True($1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment