1 write to Value
Microsoft.Extensions.AI.Abstractions (1)
TextToSpeech\TextToSpeechResponseUpdateKind.cs (1)
51
Value
= Throw.IfNullOrWhitespace(value);
13 references to Value
Microsoft.Extensions.AI.Abstractions (6)
TextToSpeech\TextToSpeechResponseUpdateKind.cs (6)
84
=> string.Equals(
Value
, other.
Value
, StringComparison.OrdinalIgnoreCase);
88
=>
Value
is null ? 0 : StringComparer.OrdinalIgnoreCase.GetHashCode(
Value
);
91
public override string ToString() =>
Value
;
103
=> Throw.IfNull(writer).WriteStringValue(value.
Value
);
Microsoft.Extensions.AI.Abstractions.Tests (7)
TextToSpeech\TextToSpeechResponseUpdateKindTests.cs (6)
15
Assert.Equal("abc", new TextToSpeechResponseUpdateKind("abc").
Value
);
48
Assert.Equal(TextToSpeechResponseUpdateKind.SessionOpen.ToString(), TextToSpeechResponseUpdateKind.SessionOpen.
Value
);
49
Assert.Equal(TextToSpeechResponseUpdateKind.Error.ToString(), TextToSpeechResponseUpdateKind.Error.
Value
);
50
Assert.Equal(TextToSpeechResponseUpdateKind.AudioUpdating.ToString(), TextToSpeechResponseUpdateKind.AudioUpdating.
Value
);
51
Assert.Equal(TextToSpeechResponseUpdateKind.AudioUpdated.ToString(), TextToSpeechResponseUpdateKind.AudioUpdated.
Value
);
52
Assert.Equal(TextToSpeechResponseUpdateKind.SessionClose.ToString(), TextToSpeechResponseUpdateKind.SessionClose.
Value
);
TextToSpeech\TextToSpeechResponseUpdateTests.cs (1)
30
Assert.Equal("custom", update.Kind.
Value
);