|
24 | 24 | using System.IO; |
25 | 25 | using System.Collections.Generic; |
26 | 26 | using IBM.Watson.DeveloperCloud.Connection; |
27 | | -using UnityEditor; |
28 | 27 |
|
29 | 28 | namespace IBM.Watson.DeveloperCloud.UnitTests |
30 | 29 | { |
@@ -143,7 +142,7 @@ public override IEnumerator RunTest() |
143 | 142 |
|
144 | 143 | // Add Configuration |
145 | 144 | 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()))) |
147 | 146 | Log.Debug("TestDiscovery.AddConfiguration()", "Failed to add configuration"); |
148 | 147 | while (!_addConfigurationTested) |
149 | 148 | yield return null; |
@@ -171,7 +170,7 @@ public override IEnumerator RunTest() |
171 | 170 |
|
172 | 171 | // Add Collection |
173 | 172 | 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)) |
175 | 174 | Log.Debug("TestDiscovery.AddCollection()", "Failed to add collection"); |
176 | 175 | while (!_addCollectionTested) |
177 | 176 | yield return null; |
|
0 commit comments