ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (23)
60Assert.Equal(1, response.Result.Id);
61Assert.Equal("Tigger", response.Result.FullName);
62Assert.Equal(Species.Tiger, response.Result.Species);
71Assert.Same(response.Result, tryGetResultOutput);
107Assert.Equal(123, response.Result);
122var ex = Assert.Throws<JsonException>(() => response.Result);
141var ex = Assert.Throws<InvalidOperationException>(() => response.Result);
160var ex = Assert.Throws<InvalidOperationException>(() => response.Result);
199Assert.Equal(1, response.Result.Id);
200Assert.Equal("Tigger", response.Result.FullName);
201Assert.Equal(Species.Tiger, response.Result.Species);
205Assert.Same(response.Result, tryGetResultOutput);
233Assert.Equal(1, response.Result!.Value!.Id);
234Assert.Equal("Tigger", response.Result.Value.FullName);
235Assert.Equal(Species.Tiger, response.Result.Value.Species);
239Assert.Same(response.Result, tryGetResultOutput);
261Assert.Single(response.Result!);
262Assert.Equal("Tigger", response.Result[0].FullName);
263Assert.Equal(Species.Tiger, response.Result[0].Species);
267Assert.Same(response.Result, tryGetResultOutput);
307Assert.Equal(1, response.Result.Id);
308Assert.Equal("Tigger", response.Result.FullName);
309Assert.Equal(Species.Tiger, response.Result.Species);