Skip to content

Commit 5a6f45e

Browse files
committed
Test(Assistant V2): Revise tests to include assert
1 parent 75b97d2 commit 5a6f45e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Scripts/UnitTests/TestAssistantV2.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,27 @@ public override IEnumerator RunTest()
117117
private void OnDeleteSession(object response, Dictionary<string, object> customData)
118118
{
119119
Log.Debug("TestAssistantV2.OnDeleteSession()", "Session deleted.");
120+
Test(response != null);
120121
_createSessionTested = true;
121122
}
122123

123124
private void OnMessage(MessageResponse response, Dictionary<string, object> customData)
124125
{
126+
Test(response != null);
125127
_messageTested = true;
126128
}
127129

128-
private void OnFail(RESTConnector.Error error, Dictionary<string, object> customData)
129-
{
130-
Log.Debug("TestAssistantV2.OnFail()", "Call failed: {0}: {1}", error.ErrorCode, error.ErrorMessage);
131-
}
132-
133130
private void OnCreateSession(SessionResponse response, Dictionary<string, object> customData)
134131
{
135132
Log.Debug("TestAssistantV2.OnCreateSession()", "Session: {0}", response.SessionId);
136133
_sessionId = response.SessionId;
134+
Test(response != null);
137135
_createSessionTested = true;
138136
}
137+
138+
private void OnFail(RESTConnector.Error error, Dictionary<string, object> customData)
139+
{
140+
Log.Debug("TestAssistantV2.OnFail()", "Call failed: {0}: {1}", error.ErrorCode, error.ErrorMessage);
141+
}
139142
}
140143
}

0 commit comments

Comments
 (0)