27 references to PrefixEnum
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (27)
artifacts\obj\Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests\Release\net11.0\Proto\Transcoding.cs (9)
172
new pbr::GeneratedClrTypeInfo(typeof(global::Transcoding.PrefixEnumType), global::Transcoding.PrefixEnumType.Parser, new[]{ "SingleEnum" }, null, new[]{ typeof(global::Transcoding.PrefixEnumType.Types.
PrefixEnum
) }, null, null),
4189
private global::Transcoding.PrefixEnumType.Types.
PrefixEnum
singleEnum_ = global::Transcoding.PrefixEnumType.Types.
PrefixEnum
.Unspecified;
4192
public global::Transcoding.PrefixEnumType.Types.
PrefixEnum
SingleEnum {
4222
if (SingleEnum != global::Transcoding.PrefixEnumType.Types.
PrefixEnum
.Unspecified) hash ^= SingleEnum.GetHashCode();
4255
if (SingleEnum != global::Transcoding.PrefixEnumType.Types.
PrefixEnum
.Unspecified) {
4269
if (SingleEnum != global::Transcoding.PrefixEnumType.Types.
PrefixEnum
.Unspecified) {
4284
if (other.SingleEnum != global::Transcoding.PrefixEnumType.Types.
PrefixEnum
.Unspecified) {
4322
SingleEnum = (global::Transcoding.PrefixEnumType.Types.
PrefixEnum
) input.ReadEnum();
ConverterTests\JsonConverterReadTests.cs (6)
282
[InlineData("UNSPECIFIED", PrefixEnumType.Types.
PrefixEnum
.Unspecified)]
283
[InlineData("PREFIX_ENUM_UNSPECIFIED", PrefixEnumType.Types.
PrefixEnum
.Unspecified)]
284
[InlineData("FOO", PrefixEnumType.Types.
PrefixEnum
.Foo)]
285
[InlineData("PREFIX_ENUM_FOO", PrefixEnumType.Types.
PrefixEnum
.Foo)]
286
[InlineData("BAR", PrefixEnumType.Types.
PrefixEnum
.Bar)]
287
public void Enum_RemovePrefix_ReadString(string value, PrefixEnumType.Types.
PrefixEnum
expectedValue)
ConverterTests\JsonConverterWriteTests.cs (12)
492
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Unspecified, @"""UNSPECIFIED""")]
493
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Foo, @"""FOO""")]
494
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Bar, @"""BAR""")]
495
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Baz, @"""BAZ""")]
496
[InlineData(PrefixEnumType.Types.
PrefixEnum
._123, @"""_123""")]
497
[InlineData((PrefixEnumType.Types.
PrefixEnum
)100, "100")]
498
public void Enum_RemovePrefix(PrefixEnumType.Types.
PrefixEnum
value, string expectedString)
510
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Unspecified, @"""PREFIX_ENUM_UNSPECIFIED""")]
511
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Foo, @"""PREFIX_ENUM_FOO""")]
512
[InlineData(PrefixEnumType.Types.
PrefixEnum
.Bar, @"""BAR""")]
513
[InlineData(PrefixEnumType.Types.
PrefixEnum
._123, @"""PREFIX_ENUM_123""")]
514
public void Enum_NoRemovePrefix(PrefixEnumType.Types.
PrefixEnum
value, string expectedString)