summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/efl_mono/Eo.cs2
-rw-r--r--src/tests/efl_mono/Inheritance.cs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index dec54ba..9a52085 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -17,6 +17,7 @@ using System;
17using System.Linq; 17using System.Linq;
18using System.Collections.Generic; 18using System.Collections.Generic;
19using System.Reflection; 19using System.Reflection;
20using System.Diagnostics.CodeAnalysis;
20 21
21namespace TestSuite 22namespace TestSuite
22{ 23{
@@ -126,6 +127,7 @@ class TestEoInherit
126 loop.Dispose(); 127 loop.Dispose();
127 } 128 }
128 129
130 [SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectBeforeLosingScope", Justification = "It is expected to lose scope.")]
129 private static WeakReference CreateCollectableInherited() 131 private static WeakReference CreateCollectableInherited()
130 { 132 {
131 return new WeakReference(new MyObject()); 133 return new WeakReference(new MyObject());
diff --git a/src/tests/efl_mono/Inheritance.cs b/src/tests/efl_mono/Inheritance.cs
index 06c4d1b..1595759 100644
--- a/src/tests/efl_mono/Inheritance.cs
+++ b/src/tests/efl_mono/Inheritance.cs
@@ -18,6 +18,7 @@ using System.Collections.Generic;
18using System.Linq; 18using System.Linq;
19using System.Runtime.InteropServices; 19using System.Runtime.InteropServices;
20using System.Runtime.CompilerServices; 20using System.Runtime.CompilerServices;
21using System.Diagnostics.CodeAnalysis;
21 22
22using EinaTestData; 23using EinaTestData;
23using static EinaTestData.BaseData; 24using static EinaTestData.BaseData;
@@ -108,6 +109,7 @@ class TestInheritance
108 obj.Dispose(); 109 obj.Dispose();
109 } 110 }
110 111
112 [SuppressMessage("Microsoft.Reliability", "CA2000:DisposeObjectBeforeLosingScope", Justification = "It is expected to lose scope.")]
111 private static void CreateAndCheckInheritedObjects(out WeakReference parentWRef, out WeakReference childWRef) 113 private static void CreateAndCheckInheritedObjects(out WeakReference parentWRef, out WeakReference childWRef)
112 { 114 {
113 var parent = new Inherit3Parent(); 115 var parent = new Inherit3Parent();