Skip to content

Commit 055b816

Browse files
Add sample
1 parent e97c86f commit 055b816

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Test/Cases/Constructors/Constructors.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,21 @@ public void ProcessData2()
4848
Console.WriteLine("Handled exception: " + ex.Message);
4949
}
5050
}
51+
52+
public void ProcessData3()
53+
{
54+
DataFetcher3 fetcher = new();
55+
}
56+
57+
public void ProcessData4()
58+
{
59+
try
60+
{
61+
DataFetcher3 fetcher = new();
62+
}
63+
catch (Exception ex)
64+
{
65+
Console.WriteLine("Handled exception: " + ex.Message);
66+
}
67+
}
5168
}

0 commit comments

Comments
 (0)