23 references to Result
Microsoft.Extensions.AI.Tests (23)
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); 197Assert.Equal(1, response.Result.Id); 198Assert.Equal("Tigger", response.Result.FullName); 199Assert.Equal(Species.Tiger, response.Result.Species); 203Assert.Same(response.Result, tryGetResultOutput); 231Assert.Equal(1, response.Result!.Value!.Id); 232Assert.Equal("Tigger", response.Result.Value.FullName); 233Assert.Equal(Species.Tiger, response.Result.Value.Species); 237Assert.Same(response.Result, tryGetResultOutput); 259Assert.Single(response.Result!); 260Assert.Equal("Tigger", response.Result[0].FullName); 261Assert.Equal(Species.Tiger, response.Result[0].Species); 265Assert.Same(response.Result, tryGetResultOutput); 305Assert.Equal(1, response.Result.Id); 306Assert.Equal("Tigger", response.Result.FullName); 307Assert.Equal(Species.Tiger, response.Result.Species);