Skip to content

Commit

Permalink
Add test case (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
inversionhourglass committed Sep 9, 2024
1 parent 9bf492e commit fa9fa7c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/Rougamo.Fody.Tests/IssueTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,13 @@ public void Issue79Test()

instance.M();
}

[Fact]
public void Issue80Test()
{
var instance = GetInstance(nameof(Issue80));

instance.M();
}
}
}
9 changes: 9 additions & 0 deletions test/TestAssemblies/Issues/Attributes/_80_Attribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Rougamo;

namespace Issues.Attributes
{
public class _80_Attribute : MoAttribute
{
public override AccessFlags Flags => AccessFlags.Method | AccessFlags.Public | AccessFlags.NonPublic;
}
}
15 changes: 15 additions & 0 deletions test/TestAssemblies/Issues/Issue80.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Issues.Attributes;
using System;
using System.Runtime.InteropServices;

namespace Issues
{
[_80_]
public class Issue80
{
public void M() { }

[DllImport("user32.dll")]
private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
}
}

0 comments on commit fa9fa7c

Please sign in to comment.