You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingFluentAssertions;namespaceFunctario.Core.UnitTests;publicclassFormatTests{[Fact]publicvoidMyTestMethod(){vara=newSomething();a.SecondaryEmail.Match(none:()=>"____________________________________________________",some: v =>"____________________________________________________")// note that the parenthese is also orphean.Should().Be("____________________________________________________");}}
Output:
v0.27.1
publicclassFormatTests{[Fact]publicvoidMyTestMethod(){vara=newSomething();a// 'a' is orphean.SecondaryEmail.Match(none:()=>"____________________________________________________",some: v =>"____________________________________________________")// parenthese is aligned.Should().Be("____________________________________________________");}}
Expected behavior:
publicclassFormatTests{[Fact]publicvoidMyTestMethod(){vara=newSomething();a.SecondaryEmail// 'a' is no more orphean.Match(// 'Match' could also be on the same lign that 'a.SecondaryEmail'none:()=>"____________________________________________________",some: v =>"____________________________________________________")// parenthese is aligned.Should().Be("____________________________________________________");}}
FYI:
The short length variable 'a' is a lambda variable in the original code.
Thanks!
The text was updated successfully, but these errors were encountered:
Supporting classes
Input:
v0.27.0
Output:
v0.27.1
Expected behavior:
FYI:
Thanks!
The text was updated successfully, but these errors were encountered: