/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/ |
D | ANTLRxxxxStreamFixture.cs | 79 Assert.AreEqual(0, inputStream.Count); in TestSizeOnEmptyANTLRInputStream() 90 Assert.AreEqual(grammarStr.Length, inputStream.Count); in TestSizeOnANTLRInputStream() 101 Assert.AreEqual(0, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 104 Assert.AreEqual(1, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 107 Assert.AreEqual(2, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream() 113 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAndIndexOnANTLRInputStream() 129 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAllCharactersInAnANTLRInputStream() 140 Assert.AreEqual(0, inputStream.Index); in TestConsumeOnANTLRInputStream() 141 Assert.AreEqual(0, inputStream.CharPositionInLine); in TestConsumeOnANTLRInputStream() 142 Assert.AreEqual(1, inputStream.Line); in TestConsumeOnANTLRInputStream() [all …]
|
D | RewriteRuleXxxxStreamFixture.cs | 101 Assert.AreEqual(description.ToString(), tokenTest.Description, in CheckRRTokenStreamBehaviourWhileEmpty1() 103 Assert.AreEqual(0, tokenTest.Count, "The number of elements should be zero."); in CheckRRTokenStreamBehaviourWhileEmpty1() 106 Assert.AreEqual(0, tokenTest.Count, in CheckRRTokenStreamBehaviourWhileEmpty1() 120 Assert.AreEqual(description.ToString(), subtreeTest.Description, in CheckRRSubtreeStreamBehaviourWhileEmpty1() 122 Assert.AreEqual(0, subtreeTest.Count, "The number of elements should be zero."); in CheckRRSubtreeStreamBehaviourWhileEmpty1() 125 Assert.AreEqual(0, subtreeTest.Count, in CheckRRSubtreeStreamBehaviourWhileEmpty1() 138 Assert.AreEqual(description.ToString(), nodeTest.Description, in CheckRRNodeStreamBehaviourWhileEmpty1() 140 Assert.AreEqual(0, nodeTest.Count, "The number of elements should be zero."); in CheckRRNodeStreamBehaviourWhileEmpty1() 143 Assert.AreEqual(0, nodeTest.Count, in CheckRRNodeStreamBehaviourWhileEmpty1() 198 Assert.AreEqual(1, tokenTest.Count, "tokenTest should have the size 1 (1)."); in CheckRRTokenStreamBehaviourWithElements() [all …]
|
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 57 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint() 65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint() 82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() [all …]
|
D | GeneratedMessageTest.cs | 63 Assert.AreEqual(false, message.SingleBool); in DefaultValues() 64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues() 65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues() 66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues() 67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues() 68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues() 69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues() 71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues() 73 Assert.AreEqual(0, message.SingleInt32); in DefaultValues() 74 Assert.AreEqual(0L, message.SingleInt64); in DefaultValues() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 57 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint() 65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint() 82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32() 163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() 172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64() [all …]
|
D | GeneratedMessageTest.cs | 63 Assert.AreEqual(false, message.SingleBool); in DefaultValues() 64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues() 65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues() 66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues() 67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues() 68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues() 69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues() 71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues() 73 Assert.AreEqual(0, message.SingleInt32); in DefaultValues() 74 Assert.AreEqual(0L, message.SingleInt64); in DefaultValues() [all …]
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersExampleTests.cs | 134 … Assert.AreEqual(ByteBufferUtil.GetSizePrefix(dataBuffer) + FlatBufferConstants.SizePrefixLength, in CanCreateNewFlatBufferFromScratch() 149 Assert.AreEqual(monster.MutateMana((short)10), false); in CanCreateNewFlatBufferFromScratch() 150 Assert.AreEqual(monster.Mana, (short)150); in CanCreateNewFlatBufferFromScratch() 153 Assert.AreEqual(monster.Testarrayoftables(0).Value.Name, "Barney"); in CanCreateNewFlatBufferFromScratch() 154 Assert.AreEqual(monster.Testarrayoftables(1).Value.Name, "Frodo"); in CanCreateNewFlatBufferFromScratch() 155 Assert.AreEqual(monster.Testarrayoftables(2).Value.Name, "Wilma"); in CanCreateNewFlatBufferFromScratch() 159 Assert.AreEqual(monster.TestarrayoftablesByKey("Frodo").Value.Name, "Frodo"); in CanCreateNewFlatBufferFromScratch() 161 Assert.AreEqual(monster.TestarrayoftablesByKey("Barney").Value.Name, "Barney"); in CanCreateNewFlatBufferFromScratch() 163 Assert.AreEqual(monster.TestarrayoftablesByKey("Wilma").Value.Name, "Wilma"); in CanCreateNewFlatBufferFromScratch() 166 Assert.AreEqual(monster.TestType, Any.Monster); in CanCreateNewFlatBufferFromScratch() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 58 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 68 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint() 77 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 84 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 87 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint() 101 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 108 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 116 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 123 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() [all …]
|
D | GeneratedMessageTest.Proto2.cs | 18 Assert.AreEqual(false, message.OptionalBool); in DefaultProto2Values() 19 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in DefaultProto2Values() 20 Assert.AreEqual(0.0, message.OptionalDouble); in DefaultProto2Values() 21 Assert.AreEqual(0, message.OptionalFixed32); in DefaultProto2Values() 22 Assert.AreEqual(0L, message.OptionalFixed64); in DefaultProto2Values() 23 Assert.AreEqual(0.0f, message.OptionalFloat); in DefaultProto2Values() 24 Assert.AreEqual(ForeignEnum.ForeignFoo, message.OptionalForeignEnum); in DefaultProto2Values() 26 Assert.AreEqual(ImportEnum.ImportFoo, message.OptionalImportEnum); in DefaultProto2Values() 28 Assert.AreEqual(0, message.OptionalInt32); in DefaultProto2Values() 29 Assert.AreEqual(0L, message.OptionalInt64); in DefaultProto2Values() [all …]
|
D | GeneratedMessageTest.cs | 64 Assert.AreEqual(false, message.SingleBool); in DefaultValues() 65 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues() 66 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues() 67 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues() 68 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues() 69 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues() 70 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues() 72 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues() 74 Assert.AreEqual(0, message.SingleInt32); in DefaultValues() 75 Assert.AreEqual(0L, message.SingleInt64); in DefaultValues() [all …]
|
D | JsonTokenizerTest.cs | 90 Assert.AreEqual(0, tokenizer.ObjectDepth); in ObjectDepth() 91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth() 92 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth() 93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth() 94 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth() 95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth() 96 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth() 97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth() 98 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth() 99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth() [all …]
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
D | CodedOutputStreamTest.cs | 58 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 65 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 68 … Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint() 77 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 84 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 87 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint() 101 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 108 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() 116 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint() 123 Assert.AreEqual(data, bufferWriter.WrittenSpan.ToArray()); in AssertWriteVarint() [all …]
|
D | GeneratedMessageTest.Proto2.cs | 18 Assert.AreEqual(false, message.OptionalBool); in DefaultProto2Values() 19 Assert.AreEqual(ByteString.Empty, message.OptionalBytes); in DefaultProto2Values() 20 Assert.AreEqual(0.0, message.OptionalDouble); in DefaultProto2Values() 21 Assert.AreEqual(0, message.OptionalFixed32); in DefaultProto2Values() 22 Assert.AreEqual(0L, message.OptionalFixed64); in DefaultProto2Values() 23 Assert.AreEqual(0.0f, message.OptionalFloat); in DefaultProto2Values() 24 Assert.AreEqual(ForeignEnum.ForeignFoo, message.OptionalForeignEnum); in DefaultProto2Values() 26 Assert.AreEqual(ImportEnum.ImportFoo, message.OptionalImportEnum); in DefaultProto2Values() 28 Assert.AreEqual(0, message.OptionalInt32); in DefaultProto2Values() 29 Assert.AreEqual(0L, message.OptionalInt64); in DefaultProto2Values() [all …]
|
D | GeneratedMessageTest.cs | 64 Assert.AreEqual(false, message.SingleBool); in DefaultValues() 65 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues() 66 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues() 67 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues() 68 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues() 69 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues() 70 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues() 72 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues() 74 Assert.AreEqual(0, message.SingleInt32); in DefaultValues() 75 Assert.AreEqual(0L, message.SingleInt64); in DefaultValues() [all …]
|
D | JsonTokenizerTest.cs | 90 Assert.AreEqual(0, tokenizer.ObjectDepth); in ObjectDepth() 91 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth() 92 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth() 93 Assert.AreEqual(JsonToken.Name("foo"), tokenizer.Next()); in ObjectDepth() 94 Assert.AreEqual(1, tokenizer.ObjectDepth); in ObjectDepth() 95 Assert.AreEqual(JsonToken.StartObject, tokenizer.Next()); in ObjectDepth() 96 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth() 97 Assert.AreEqual(JsonToken.Name("x"), tokenizer.Next()); in ObjectDepth() 98 Assert.AreEqual(2, tokenizer.ObjectDepth); in ObjectDepth() 99 Assert.AreEqual(JsonToken.Value(1), tokenizer.Next()); in ObjectDepth() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorsTest.cs | 51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor() 52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor() 54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor() 55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor() 58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor() 59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor() 60 …Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor() 62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor() 63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor() 68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor() [all …]
|
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorsTest.cs | 51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor() 52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor() 54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor() 55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor() 58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor() 59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor() 60 …Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor() 62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor() 63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor() 68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorsTest.cs | 71 Assert.AreEqual(3, converted.Count); in FileDescriptor_BuildFromByteStrings() 90 Assert.AreEqual(-56, extensionValue); in FileDescriptor_BuildFromByteStrings_WithExtensionRegistry() 95 Assert.AreEqual("unittest_proto3.proto", file.Name); in TestFileDescriptor() 96 Assert.AreEqual("protobuf_unittest3", file.Package); in TestFileDescriptor() 98 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in TestFileDescriptor() 99 Assert.AreEqual("unittest_proto3.proto", file.Proto.Name); in TestFileDescriptor() 102 Assert.AreEqual(0, file.PublicDependencies.Count); in TestFileDescriptor() 103 Assert.AreEqual(1, importedFile.PublicDependencies.Count); in TestFileDescriptor() 104 Assert.AreEqual(importedPublicFile, importedFile.PublicDependencies[0]); in TestFileDescriptor() 106 Assert.AreEqual(1, file.Dependencies.Count); in TestFileDescriptor() [all …]
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | DescriptorsTest.cs | 71 Assert.AreEqual(3, converted.Count); in FileDescriptor_BuildFromByteStrings() 90 Assert.AreEqual(-56, extensionValue); in FileDescriptor_BuildFromByteStrings_WithExtensionRegistry() 95 Assert.AreEqual("unittest_proto3.proto", file.Name); in TestFileDescriptor() 96 Assert.AreEqual("protobuf_unittest3", file.Package); in TestFileDescriptor() 98 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in TestFileDescriptor() 99 Assert.AreEqual("unittest_proto3.proto", file.Proto.Name); in TestFileDescriptor() 102 Assert.AreEqual(0, file.PublicDependencies.Count); in TestFileDescriptor() 103 Assert.AreEqual(1, importedFile.PublicDependencies.Count); in TestFileDescriptor() 104 Assert.AreEqual(importedPublicFile, importedFile.PublicDependencies[0]); in TestFileDescriptor() 106 Assert.AreEqual(1, file.Dependencies.Count); in TestFileDescriptor() [all …]
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 63 Assert.AreEqual(1, list.Count); in Add_SingleItem() 64 Assert.AreEqual("foo", list[0]); in Add_SingleItem() 72 Assert.AreEqual(2, list.Count); in Add_Sequence() 73 Assert.AreEqual("foo", list[0]); in Add_Sequence() 74 Assert.AreEqual("bar", list[1]); in Add_Sequence() 82 Assert.AreEqual(2, list.Count); in AddRange_SlowPath() 83 Assert.AreEqual("foo", list[0]); in AddRange_SlowPath() 84 Assert.AreEqual("bar", list[1]); in AddRange_SlowPath() 110 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NonNullableValueType() 111 Assert.AreEqual(20, list[0]); in AddRange_Optimized_NonNullableValueType() [all …]
|
/external/cronet/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 63 Assert.AreEqual(1, list.Count); in Add_SingleItem() 64 Assert.AreEqual("foo", list[0]); in Add_SingleItem() 72 Assert.AreEqual(2, list.Count); in Add_Sequence() 73 Assert.AreEqual("foo", list[0]); in Add_Sequence() 74 Assert.AreEqual("bar", list[1]); in Add_Sequence() 82 Assert.AreEqual(2, list.Count); in AddRange_SlowPath() 83 Assert.AreEqual("foo", list[0]); in AddRange_SlowPath() 84 Assert.AreEqual("bar", list[1]); in AddRange_SlowPath() 110 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NonNullableValueType() 111 Assert.AreEqual(20, list[0]); in AddRange_Optimized_NonNullableValueType() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/ |
D | HistogramTest.cs | 45 Assert.AreEqual(4, data.Count); in Simple() 46 Assert.AreEqual(42000.0, data.Sum, 1e-6); in Simple() 47 Assert.AreEqual(10000, data.MinSeen); in Simple() 48 Assert.AreEqual(11000, data.MaxSeen); in Simple() 49 Assert.AreEqual(2.0*10000*10000 + 2.0*11000*11000, data.SumOfSquares, 1e-6); in Simple() 52 Assert.AreEqual(2, data.Bucket[925]); in Simple() 53 Assert.AreEqual(2, data.Bucket[935]); in Simple() 64 Assert.AreEqual(1, data.Bucket[0]); in ExtremeObservations() 65 Assert.AreEqual(1, data.Bucket[data.Bucket.Count - 1]); in ExtremeObservations() 83 Assert.AreEqual(4, data.Count); in MergeSnapshots() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
D | ClientServerTest.cs | 65 Assert.AreEqual("ABC", Calls.BlockingUnaryCall(helper.CreateUnaryCall(), "ABC")); in UnaryCall() 67 Assert.AreEqual("ABC", await Calls.AsyncUnaryCall(helper.CreateUnaryCall(), "ABC")); in UnaryCall() 79 Assert.AreEqual(StatusCode.Unknown, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrows() 82 Assert.AreEqual(StatusCode.Unknown, ex2.Status.StatusCode); in UnaryCall_ServerHandlerThrows() 94 Assert.AreEqual(StatusCode.Unauthenticated, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcException() 95 Assert.AreEqual(0, ex.Trailers.Count); in UnaryCall_ServerHandlerThrowsRpcException() 98 Assert.AreEqual(StatusCode.Unauthenticated, ex2.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcException() 99 Assert.AreEqual(0, ex.Trailers.Count); in UnaryCall_ServerHandlerThrowsRpcException() 112 Assert.AreEqual(StatusCode.Unauthenticated, ex.Status.StatusCode); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers() 113 Assert.AreEqual(1, ex.Trailers.Count); in UnaryCall_ServerHandlerThrowsRpcExceptionWithTrailers() [all …]
|
/external/cronet/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 64 Assert.AreEqual(1, list.Count); in Add_SingleItem() 65 Assert.AreEqual("foo", list[0]); in Add_SingleItem() 73 Assert.AreEqual(2, list.Count); in Add_Sequence() 74 Assert.AreEqual("foo", list[0]); in Add_Sequence() 75 Assert.AreEqual("bar", list[1]); in Add_Sequence() 83 Assert.AreEqual(2, list.Count); in AddRange_SlowPath() 84 Assert.AreEqual("foo", list[0]); in AddRange_SlowPath() 85 Assert.AreEqual("bar", list[1]); in AddRange_SlowPath() 111 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NonNullableValueType() 112 Assert.AreEqual(20, list[0]); in AddRange_Optimized_NonNullableValueType() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 64 Assert.AreEqual(1, list.Count); in Add_SingleItem() 65 Assert.AreEqual("foo", list[0]); in Add_SingleItem() 73 Assert.AreEqual(2, list.Count); in Add_Sequence() 74 Assert.AreEqual("foo", list[0]); in Add_Sequence() 75 Assert.AreEqual("bar", list[1]); in Add_Sequence() 83 Assert.AreEqual(2, list.Count); in AddRange_SlowPath() 84 Assert.AreEqual("foo", list[0]); in AddRange_SlowPath() 85 Assert.AreEqual("bar", list[1]); in AddRange_SlowPath() 111 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NonNullableValueType() 112 Assert.AreEqual(20, list[0]); in AddRange_Optimized_NonNullableValueType() [all …]
|