Skip to content

Commit

Permalink
adjust tests: some old known bugs are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Kelman authored and Timur Kelman committed Jul 25, 2024
1 parent a64e208 commit a8c6d10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Tests/CSharp/MemberTests/MemberTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ public void set_Prop(int i, string value)
_Prop_bSet = false;
}
}", incompatibleWithAutomatedCommentTesting: true);// Known bug: Additional declarations don't get comments correctly converted
}");
}

[Fact]
Expand Down
10 changes: 4 additions & 6 deletions Tests/CSharp/MemberTests/PropertyMemberTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Return LastName & "" "" & FirstName
Return FirstName & "" "" & LastName
End If
End Get
' Bug: Comment moves inside generated method
' This comment belongs to the set method
Friend Set
If isFirst Then FirstName = Value
End Set
Expand All @@ -110,9 +110,8 @@ public string get_FullName(bool lastNameFirst, bool isFirst)
{
return FirstName + "" "" + LastName;
}
// Bug: Comment moves inside generated method
}
// This comment belongs to the set method
internal void set_FullName(bool lastNameFirst, bool isFirst, string value)
{
if (isFirst)
Expand Down Expand Up @@ -176,7 +175,7 @@ Public Property FullName(Optional ByVal isFirst As Boolean = False) As String
Get
Return FirstName & "" "" & LastName
End Get
'Bug: Comment moves inside generated get method
'This comment belongs to the set method
Friend Set
If isFirst Then FirstName = Value
End Set
Expand All @@ -197,9 +196,8 @@ internal partial class TestClass
public string get_FullName(bool isFirst = false)
{
return FirstName + "" "" + LastName;
// Bug: Comment moves inside generated get method
}
// This comment belongs to the set method
internal void set_FullName(bool isFirst = false, string value = default)
{
if (isFirst)
Expand Down

0 comments on commit a8c6d10

Please sign in to comment.