Skip to content

Commit 38c8d7b

Browse files
committed
remove dependency on UnityEditor in TestDiscovery.cs
1 parent 5a34d15 commit 38c8d7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Scripts/UnitTests/TestDiscovery.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
using System.IO;
2525
using System.Collections.Generic;
2626
using IBM.Watson.DeveloperCloud.Connection;
27-
using UnityEditor;
2827

2928
namespace IBM.Watson.DeveloperCloud.UnitTests
3029
{
@@ -143,7 +142,7 @@ public override IEnumerator RunTest()
143142

144143
// Add Configuration
145144
Log.Debug("TestDiscovery.RunTest()", "Attempting to add configuration");
146-
if (!_discovery.AddConfiguration(OnAddConfiguration, OnFail, _environmentId, _configurationJson.Replace("{guid}", GUID.Generate().ToString())))
145+
if (!_discovery.AddConfiguration(OnAddConfiguration, OnFail, _environmentId, _configurationJson.Replace("{guid}", System.Guid.NewGuid().ToString())))
147146
Log.Debug("TestDiscovery.AddConfiguration()", "Failed to add configuration");
148147
while (!_addConfigurationTested)
149148
yield return null;
@@ -171,7 +170,7 @@ public override IEnumerator RunTest()
171170

172171
// Add Collection
173172
Log.Debug("TestDiscovery.RunTest()", "Attempting to add collection");
174-
if (!_discovery.AddCollection(OnAddCollection, OnFail, _environmentId, _createdCollectionName + GUID.Generate().ToString(), _createdCollectionDescription, _createdConfigurationID))
173+
if (!_discovery.AddCollection(OnAddCollection, OnFail, _environmentId, _createdCollectionName + System.Guid.NewGuid().ToString(), _createdCollectionDescription, _createdConfigurationID))
175174
Log.Debug("TestDiscovery.AddCollection()", "Failed to add collection");
176175
while (!_addCollectionTested)
177176
yield return null;

0 commit comments

Comments
 (0)