From 816e96e36aae1c036089f198948bed6a0c388bf5 Mon Sep 17 00:00:00 2001 From: latkin Date: Thu, 11 Dec 2014 15:03:34 -0800 Subject: [PATCH] Another IDE unit test fix, compensates for new behavior with "ctors as functions" (changeset 1384847) --- .../Tests.LanguageService.ParameterInfo.fs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs b/vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs index 00c6173489b..e035aa3e6c1 100644 --- a/vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs +++ b/vsintegration/src/unittests/Tests.LanguageService.ParameterInfo.fs @@ -1604,12 +1604,16 @@ We really need to rewrite some code paths here to use the real parse tree rather | :? NoParamInfo -> () [] - 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 -> () [] member public this.``LocationOfParams.TypeProviders.BasicWithinExpr.DoesNotInterfereWithOuterFunction``() =