We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 593403f commit f42ee17Copy full SHA for f42ee17
Assets/Reflex.EditModeTests/GarbageCollectionTests.cs
@@ -4,6 +4,7 @@
4
using FluentAssertions;
5
using NUnit.Framework;
6
using Reflex.Core;
7
+using UnityEditor.Compilation;
8
using UnityEngine;
9
10
namespace Reflex.EditModeTests
@@ -20,6 +21,15 @@ public static void ForceGarbageCollection()
20
21
GC.Collect();
22
GC.WaitForPendingFinalizers();
23
}
24
+
25
+ [OneTimeSetUp]
26
+ public void Setup()
27
+ {
28
+ if (CompilationPipeline.codeOptimization == CodeOptimization.Debug)
29
30
+ Assert.Inconclusive("GC works differently in Debug mode. Please run tests in Release mode.");
31
+ }
32
33
34
[Test, Retry(3)]
35
public void Singleton_ShouldBeFinalized_WhenOwnerIsDisposed()
0 commit comments