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 a80a633 commit ade8da0Copy full SHA for ade8da0
tests/FSharpLint.Core.Tests/Rules/Conventions/FavourStaticEmptyFields.fs
@@ -91,6 +91,19 @@ type Person =
91
Assert.IsTrue this.ErrorsExist
92
Assert.IsTrue (this.ErrorMsg.Contains "List.Empty")
93
94
+ [<Test>]
95
+ member this.FavourStaticEmptyFieldsShouldProduceError11() =
96
+ this.Parse """
97
+type Person =
98
+ {
99
+ FirstName: string
100
+ }
101
+
102
+{ FirstName = "" } |> ignore"""
103
104
+ Assert.IsTrue this.ErrorsExist
105
+ Assert.IsTrue (this.ErrorMsg.Contains "String.Empty")
106
107
[<Test>]
108
member this.FavourStaticEmptyFieldsShouldNotProduceError1() =
109
this.Parse "let bar = String.Empty"
0 commit comments