File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
app/tests/MinimalApi.Tests Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ public async Task NorthwindHealthQuestionTest_TextOnlyAsync()
69
69
// - has correct answer
70
70
// - has has correct format for source reference.
71
71
72
- response . DataPoints ? . Count ( ) . Should ( ) . Be ( 2 ) ;
73
- response . Answer . Should ( ) . NotBeNullOrEmpty ( ) ;
74
- response . CitationBaseUrl . Should ( ) . Be ( "https://northwindhealth.blob.core.windows.net/northwindhealth" ) ;
72
+ response . Choices . First ( ) . Context . DataPoints . Text ? . Count ( ) . Should ( ) . Be ( 2 ) ;
73
+ response . Choices . First ( ) . Message . Content . Should ( ) . NotBeNullOrEmpty ( ) ;
74
+ response . Choices . First ( ) . CitationBaseUrl . Should ( ) . Be ( "https://northwindhealth.blob.core.windows.net/northwindhealth" ) ;
75
75
}
76
76
77
77
[ EnvironmentVariablesFact (
@@ -129,8 +129,8 @@ public async Task FinancialReportTestAsync()
129
129
// - has correct answer
130
130
// - has has correct format for source reference.
131
131
132
- response . DataPoints ? . Count ( ) . Should ( ) . Be ( 0 ) ;
133
- response . Images ? . Count ( ) . Should ( ) . Be ( 2 ) ;
134
- response . Answer . Should ( ) . NotBeNullOrEmpty ( ) ;
132
+ response . Choices . First ( ) . Context . DataPoints . Text ? . Count ( ) . Should ( ) . Be ( 0 ) ;
133
+ response . Choices . First ( ) . Context . DataPointsImages ? . Count ( ) . Should ( ) . Be ( 2 ) ;
134
+ response . Choices . First ( ) . Message . Content . Should ( ) . NotBeNullOrEmpty ( ) ;
135
135
}
136
136
}
You can’t perform that action at this time.
0 commit comments