1-
2-
1+ #if UNITY_EDITOR
32using System ;
3+ using System . IO ;
44using System . Collections ;
55using System . Collections . Generic ;
66using System . Linq ;
1212using Unity . Netcode . Runtime ;
1313using UnityEngine ;
1414using UnityEngine . TestTools ;
15- using UnityEngine . Windows ;
1615
17- namespace Unity . Netcode . RuntimeTests
16+ namespace TestProject . RuntimeTests
1817{
1918 internal class HelpUrlTests
2019 {
@@ -23,10 +22,7 @@ internal class HelpUrlTests
2322
2423 private bool m_VerboseLogging = false ;
2524
26- // TODO: Since help URIs are only used in the editor, we should migrate this into the editor tests.
27- // IOS platform can't run this test for some reason.
2825 [ UnityTest ]
29- [ UnityPlatform ( exclude = new [ ] { RuntimePlatform . IPhonePlayer } ) ]
3026 public IEnumerator ValidateUrlsAreValid ( )
3127 {
3228 var names = new List < string > ( ) ;
@@ -116,7 +112,7 @@ private string ContentExistsInDocumentation(string url)
116112 {
117113 var splitFilter = url . Contains ( HelpUrls . BaseManualUrl ) ? HelpUrls . BaseManualUrl : HelpUrls . BaseApiUrl ;
118114 var split = url . Split ( splitFilter ) ;
119- var current = System . IO . Directory . GetCurrentDirectory ( ) . Replace ( "testproject" , string . Empty ) ;
115+ var current = Directory . GetCurrentDirectory ( ) . Replace ( "testproject" , string . Empty ) ;
120116 var filePath = $ "{ current } com.unity.netcode.gameobjects/Documentation~/{ split [ 1 ] . Replace ( ".html" , ".md" ) } ";
121117 try
122118 {
@@ -207,3 +203,4 @@ private void VerboseLog(string message)
207203
208204 }
209205}
206+ #endif
0 commit comments