Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiihellox10 <basehello@icloud.com>2020-05-27 18:52:44 +0300
committerJoel Martinez <joelmartinez@gmail.com>2020-09-02 00:27:01 +0300
commit718b18ba0087337a562add5c110452dc9c7b4d50 (patch)
treea22eb34a4c07d18c00128ab298f39fa4c25a9f34 /mdoc/mdoc.Test/VBFormatterTests.cs
parent7d14c9e177ef0f6a0a3a66e0196f26e6878c9f9a (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.cs8
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)
{