Skip to content

Commit

Permalink
Core.Tests: added test for static properties
Browse files Browse the repository at this point in the history
Added test that checks that rule is not applied to static properties.
  • Loading branch information
webwarrior-ws committed Dec 5, 2023
1 parent 841af7a commit 33e7574
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,12 @@ type Foo(content: int) =
"""

Assert.IsTrue(this.ErrorsExist)

[<Test>]
member this.``Should not suggest usage of auto-property for static property`` () =
this.Parse """
type Foo() =
static member Content = 42
"""

Assert.IsTrue(this.NoErrorsExist)

0 comments on commit 33e7574

Please sign in to comment.