Skip to content

Commit

Permalink
Another IDE unit test fix, compensates for new behavior with "ctors a…
Browse files Browse the repository at this point in the history
…s functions" (changeset 1384847)
  • Loading branch information
latkin committed Dec 11, 2014
1 parent 9a23b8c commit 816e96e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1604,12 +1604,16 @@ We really need to rewrite some code paths here to use the real parse tree rather
| :? NoParamInfo -> ()

[<Test>]
member public this.``LocationOfParams.TypeProviders.BasicWithinExpr``() =
this.TestParameterInfoLocationOfParams("""
let f() =
let r = id( ^N1.T^^< "fo$o"^, ParamIgnored=42 ^> )
r """,
additionalReferenceAssemblies = [System.IO.Path.Combine(System.Environment.CurrentDirectory,@"UnitTestsResources\MockTypeProviders\DummyProviderForLanguageServiceTesting.dll")])
member public this.``LocationOfParams.TypeProviders.BasicWithinExpr``() =
try
this.TestParameterInfoLocationOfParams("""
let f() =
let r = id( ^N1.T^^< "fo$o"^, ParamIgnored=42 ^> )
r """,
additionalReferenceAssemblies = [System.IO.Path.Combine(System.Environment.CurrentDirectory,@"UnitTestsResources\MockTypeProviders\DummyProviderForLanguageServiceTesting.dll")])
failwith "unexpected param info for invalid use of constructorless type"
with
| :? NoParamInfo -> ()

[<Test>]
member public this.``LocationOfParams.TypeProviders.BasicWithinExpr.DoesNotInterfereWithOuterFunction``() =
Expand Down

0 comments on commit 816e96e

Please sign in to comment.