From d134fa8db55aa86a80ec68c3d7b18396be3a04e2 Mon Sep 17 00:00:00 2001 From: Paul Demeulenaere Date: Thu, 23 Sep 2021 11:02:18 +0200 Subject: [PATCH] Fix Verify_Orphan_Dependencies_Are_Correctly_Cleared Useless UnityTest with enumarable approach --- .../Assets/AllTests/Editor/Tests/VFXSerializationTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TestProjects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests/VFXSerializationTests.cs b/TestProjects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests/VFXSerializationTests.cs index fb9f6143c78..1a7b4b7e6cc 100644 --- a/TestProjects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests/VFXSerializationTests.cs +++ b/TestProjects/VisualEffectGraph_HDRP/Assets/AllTests/Editor/Tests/VFXSerializationTests.cs @@ -886,8 +886,8 @@ public void SerializeAttributeParameter() } //Cover unexpected behavior : 1307562 - [UnityTest] - public IEnumerable Verify_Orphan_Dependencies_Are_Correctly_Cleared() + [Test] + public void Verify_Orphan_Dependencies_Are_Correctly_Cleared() { string path = null; { @@ -943,7 +943,6 @@ public IEnumerable Verify_Orphan_Dependencies_Are_Correctly_Cleared() Assert.AreEqual(1, recordedSize.GroupBy(o => o).Count()); Assert.AreNotEqual(0u, recordedSize[0]); - yield return null; } //Cover regression test : 1315191