summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-15 00:08:38 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-15 00:08:38 -0300
commit2272e21b3cc96966f0ece64c2cc43d7bb5fce32a (patch)
tree252f396e8ad20cf579136572762cb7f61b361568 /src/tests/efl_mono/Eo.cs
parenta0dd0b616a9b02336de442d522742188786bd98d (diff)
csharp: Silence CA2000 in tests
Summary: These objects are expected to leave scope while alive. Ref T8423 Depends on D10671 Reviewers: brunobelo, felipealmeida, YOhoho Reviewed By: brunobelo Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8423 Differential Revision: https://phab.enlightenment.org/D10672
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index dec54ba31a..9a52085902 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());