File tree Expand file tree Collapse file tree
com.unity.netcode.gameobjects/Tests/Runtime/NetworkVariable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88using Unity . Netcode . TestHelpers . Runtime ;
99using UnityEngine ;
1010using UnityEngine . TestTools ;
11- using UnityEngine . TestTools . Constraints ;
12- using Is = NUnit . Framework . Is ;
1311using Random = UnityEngine . Random ;
1412
1513namespace Unity . Netcode . RuntimeTests
@@ -106,10 +104,7 @@ public IEnumerator ValidateNetworkListSynchronization()
106104 var val = Random . Range ( 0 , 1234 ) ;
107105 m_ExpectedValues . Add ( val ) ;
108106
109- Assert . That ( ( ) =>
110- {
111- authorityInstance . TheList . Add ( val ) ;
112- } , Is . Not . AllocatingGCMemory ( ) ) ;
107+ authorityInstance . TheList . Add ( val ) ;
113108 }
114109
115110 yield return WaitForConditionOrTimeOut ( OnVerifyData ) ;
@@ -129,10 +124,7 @@ public IEnumerator ValidateNetworkListSynchronization()
129124 var valToInsert = Random . Range ( 1 , 99 ) ;
130125 m_ExpectedValues . Insert ( indexToInsert , valToInsert ) ;
131126
132- Assert . That ( ( ) =>
133- {
134- authorityInstance . TheList . Insert ( indexToInsert , valToInsert ) ;
135- } , Is . Not . AllocatingGCMemory ( ) ) ;
127+ authorityInstance . TheList . Insert ( indexToInsert , valToInsert ) ;
136128 }
137129
138130 yield return WaitForConditionOrTimeOut ( OnVerifyData ) ;
You can’t perform that action at this time.
0 commit comments