diff options
author | hiihellox10 <basehello@icloud.com> | 2020-05-27 18:52:44 +0300 |
---|---|---|
committer | Joel Martinez <joelmartinez@gmail.com> | 2020-09-02 00:27:01 +0300 |
commit | 718b18ba0087337a562add5c110452dc9c7b4d50 (patch) | |
tree | a22eb34a4c07d18c00128ab298f39fa4c25a9f34 /mdoc/mdoc.Test/VBFormatterTests.cs | |
parent | 7d14c9e177ef0f6a0a3a66e0196f26e6878c9f9a (diff) |
Fix VB default value for class parameters bug (#499)
* Fix VB default value for class parameters bug
https://ceapex.visualstudio.com/Engineering/_workitems/edit/221125
Diffstat (limited to 'mdoc/mdoc.Test/VBFormatterTests.cs')
-rw-r--r-- | mdoc/mdoc.Test/VBFormatterTests.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mdoc/mdoc.Test/VBFormatterTests.cs b/mdoc/mdoc.Test/VBFormatterTests.cs index de853856..87d4565c 100644 --- a/mdoc/mdoc.Test/VBFormatterTests.cs +++ b/mdoc/mdoc.Test/VBFormatterTests.cs @@ -124,6 +124,14 @@ namespace mdoc.Test Assert.AreEqual("Public Sub DoSomethingWithParams (ParamArray values As Integer())", sig); } + [Test] + public void DefaultNullValueForParams() + { + var member = GetMethod(typeof(SomeGenericClass<>), m => m.Name == "SomeMethod4"); + var sig = formatter.GetDeclaration(member); + Assert.AreEqual("Public Sub SomeMethod4 (ByRef a As String, t As T, Optional b As Object = Nothing)", sig); + } + #region Helper Methods string RealTypeName(string name) { |