Skip to content

Commit

Permalink
Core.Tests: added test for fix
Browse files Browse the repository at this point in the history
Added a test for suggested fix.
  • Loading branch information
webwarrior-ws committed Dec 6, 2023
1 parent b892cc0 commit 6e30839
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,18 @@ type Foo() =
"""

Assert.IsTrue(this.NoErrorsExist)

[<Test>]
member this.``Quick fix for property that only returns immutable value`` () =
let source = """
type Foo(content: int) =
member self.Content = content
"""

let expected = """
type Foo(content: int) =
member val Content = content
"""

this.Parse source
Assert.AreEqual(expected, this.ApplyQuickFix source)

0 comments on commit 6e30839

Please sign in to comment.