We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05fa5a2 commit a30bbd7Copy full SHA for a30bbd7
tests/FSharpLint.Core.Tests/Rules/Conventions/FavourStaticEmptyFields.fs
@@ -104,6 +104,19 @@ type Person =
104
Assert.IsTrue this.ErrorsExist
105
Assert.IsTrue (this.ErrorMsg.Contains "String.Empty")
106
107
+ [<Test>]
108
+ member this.FavourStaticEmptyFieldsShouldProduceError12() =
109
+ this.Parse """
110
+type Person =
111
+ {
112
+ FirstName: string
113
+ }
114
+
115
+{ FirstName = fooGetFirstName "" } |> ignore"""
116
117
+ Assert.IsTrue this.ErrorsExist
118
+ Assert.IsTrue (this.ErrorMsg.Contains "String.Empty")
119
120
[<Test>]
121
member this.FavourStaticEmptyFieldsShouldNotProduceError1() =
122
this.Parse "let bar = String.Empty"
0 commit comments