28 references to ThrowsArgumentException
Microsoft.VisualStudio.LanguageServices.UnitTests (28)
CodeModel\CSharp\CodeClassTests.vb (5)
3193
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessProjectOrProtected,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
3231
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessPrivate,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
3397
Await TestSetDocComment(code, expected, Nothing,
ThrowsArgumentException
(Of String))
3412
Await TestSetDocComment(code, expected, "<doc><summary>Blah</doc>",
ThrowsArgumentException
(Of String))
3427
Await TestSetDocComment(code, expected, "<doc___><summary>Blah</summary></doc___>",
ThrowsArgumentException
(Of String))
CodeModel\CSharp\CodeFunctionTests.vb (4)
1624
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessProtected,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
1895
Await TestSetCanOverride(code, expected, False,
ThrowsArgumentException
(Of Boolean))
2044
Await TestSetMustImplement(code, expected, True,
ThrowsArgumentException
(Of Boolean))
2094
Await TestSetMustImplement(code, expected, False,
ThrowsArgumentException
(Of Boolean))
CodeModel\CSharp\CodeNamespaceTests.vb (3)
268
Await TestSetDocComment(code, expected, Nothing,
ThrowsArgumentException
(Of String))
283
Await TestSetDocComment(code, expected, "<doc><summary>Blah</doc>",
ThrowsArgumentException
(Of String))
298
Await TestSetDocComment(code, expected, "<doc___><summary>Blah</summary></doc___>",
ThrowsArgumentException
(Of String))
CodeModel\CSharp\CodeParameterTests.vb (1)
508
Await TestSetParameterKind(code, expected, EnvDTE80.vsCMParameterKind.vsCMParameterKindParamArray,
ThrowsArgumentException
(Of EnvDTE80.vsCMParameterKind)())
CodeModel\CSharp\CodeVariableTests.vb (2)
898
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessPrivate,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
1353
Await TestSetConstKind(code, expected, EnvDTE80.vsCMConstKind.vsCMConstKindNone,
ThrowsArgumentException
(Of EnvDTE80.vsCMConstKind))
CodeModel\VisualBasic\CodeClassTests.vb (2)
2182
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessProjectOrProtected,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
2212
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessPrivate,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
CodeModel\VisualBasic\CodeEventTests.vb (1)
1112
Await TestSetTypeProp(code, expected, CType(Nothing, EnvDTE.CodeTypeRef),
ThrowsArgumentException
(Of EnvDTE.CodeTypeRef))
CodeModel\VisualBasic\CodeFunctionTests.vb (1)
2126
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessProjectOrProtected,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())
CodeModel\VisualBasic\CodeParameterTests.vb (8)
865
Await TestSetParameterKind(code, expected, EnvDTE80.vsCMParameterKind.vsCMParameterKindOut,
ThrowsArgumentException
(Of EnvDTE80.vsCMParameterKind)())
1049
Await TestSetDefaultValue(code, expected, """Goo""",
ThrowsArgumentException
(Of String)())
1277
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
1340
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
1403
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
1445
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeInOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
1466
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
1529
Await TestSetParameterPassingMode(code, expected, PARAMETER_PASSING_MODE.cmParameterTypeOut,
ThrowsArgumentException
(Of PARAMETER_PASSING_MODE)())
CodeModel\VisualBasic\CodeVariableTests.vb (1)
979
Await TestSetAccess(code, expected, EnvDTE.vsCMAccess.vsCMAccessPrivate,
ThrowsArgumentException
(Of EnvDTE.vsCMAccess)())