Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit a835694

Browse files
committed
Add back .NET 4.0 compatibility
1 parent 64fa6b8 commit a835694

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/tests/SharpRaven.UnitTests/RavenClientTests/CaptureTester.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,18 @@ public void AllMethodsAreTested()
5656
{
5757
var testerMethods = GetType()
5858
.GetMethods(BindingFlags.DeclaredOnly)
59-
.Where(m => m.GetCustomAttribute(typeof(TestAttribute), false) == null)
60-
.Where(m => m.GetCustomAttribute(typeof(IgnoreAttribute), false) == null)
59+
.Where(m => !m.GetCustomAttributes(typeof(TestAttribute), false).Any())
60+
.Where(m => !m.GetCustomAttributes(typeof(IgnoreAttribute), false).Any())
6161
.ToList();
6262

6363
var ravenClientTests = new[]
6464
{
65+
#if (!net40)
6566
typeof(CaptureAsyncTests),
6667
typeof(CaptureExceptionAsyncTests),
67-
typeof(CaptureExceptionTests),
6868
typeof(CaptureMessageAsyncTests),
69+
#endif
70+
typeof(CaptureExceptionTests),
6971
typeof(CaptureMessageTests),
7072
typeof(CaptureTests)
7173
};

0 commit comments

Comments
 (0)