Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.UnitTests.UnitTest Class Referenceabstract

This is the base class for all UnitTest classes. Derive from this class and implement the RunTest() function. More...

Inheritance diagram for IBM.Watson.DeveloperCloud.UnitTests.UnitTest:
IBM.Watson.DeveloperCloud.UnitTests.TestAlchemyAPI IBM.Watson.DeveloperCloud.UnitTests.TestConversation IBM.Watson.DeveloperCloud.UnitTests.TestDiscovery IBM.Watson.DeveloperCloud.UnitTests.TestDocumentConversion IBM.Watson.DeveloperCloud.UnitTests.TestEventManager IBM.Watson.DeveloperCloud.UnitTests.TestLanguageTranslator IBM.Watson.DeveloperCloud.UnitTests.TestNaturalLanguageClassifier IBM.Watson.DeveloperCloud.UnitTests.TestNaturalLanguageUnderstanding IBM.Watson.DeveloperCloud.UnitTests.TestPersonalityInsightsV3 IBM.Watson.DeveloperCloud.UnitTests.TestRetrieveAndRank IBM.Watson.DeveloperCloud.UnitTests.TestRunnable IBM.Watson.DeveloperCloud.UnitTests.TestSpeechToText IBM.Watson.DeveloperCloud.UnitTests.TestTextToSpeech IBM.Watson.DeveloperCloud.UnitTests.TestToneAnalyzer IBM.Watson.DeveloperCloud.UnitTests.TestTradeoffAnalytics IBM.Watson.DeveloperCloud.UnitTests.TestVisualRecognition

Public Member Functions

abstract IEnumerator RunTest ()
 
void Test (bool condition)
 Utility function that fails this test if false. More...
 
virtual string ProjectToTest ()
 

Public Attributes

int TestCredentialIndex = 0
 Which credential should the tests use. Default is 0. More...
 

Protected Attributes

string _url
 

Properties

bool TestFailed [get, set]
 

Detailed Description

This is the base class for all UnitTest classes. Derive from this class and implement the RunTest() function.

Member Function Documentation

virtual string IBM.Watson.DeveloperCloud.UnitTests.UnitTest.ProjectToTest ( )
inlinevirtual
void IBM.Watson.DeveloperCloud.UnitTests.UnitTest.Test ( bool  condition)
inline

Utility function that fails this test if false.

Parameters
conditionIf false then the test is failed and the failure is logged.

Member Data Documentation

string IBM.Watson.DeveloperCloud.UnitTests.UnitTest._url
protected
int IBM.Watson.DeveloperCloud.UnitTests.UnitTest.TestCredentialIndex = 0

Which credential should the tests use. Default is 0.

Property Documentation

bool IBM.Watson.DeveloperCloud.UnitTests.UnitTest.TestFailed
getset

The documentation for this class was generated from the following file: