/external/cronet/tot/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 195 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 205 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 206 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 230 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 232 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 234 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 247 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 527 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 195 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 205 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 206 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 230 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 232 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 234 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 247 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 527 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|
/external/cronet/stable/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 195 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 205 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 206 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 230 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 232 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 234 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 247 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 527 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 196 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 198 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 206 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 208 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 231 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 233 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 235 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 248 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 654 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|
/external/cronet/stable/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 196 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 198 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 206 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 208 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 231 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 233 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 235 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 248 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 654 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|
/external/cronet/tot/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 196 collection.Add(NewKeyValuePair("x", "y")); in Add_Pair() 198 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair() 206 Assert.IsTrue(collection.Contains(NewKeyValuePair("x", "y"))); in Contains_Pair() 207 Assert.IsFalse(collection.Contains(NewKeyValuePair("x", "z"))); in Contains_Pair() 208 Assert.IsFalse(collection.Contains(NewKeyValuePair("z", "y"))); in Contains_Pair() 231 Assert.IsFalse(collection.Remove(NewKeyValuePair("wrong key", "bar"))); in Remove_Pair() 233 Assert.IsFalse(collection.Remove(NewKeyValuePair("foo", "wrong value"))); in Remove_Pair() 235 Assert.IsTrue(collection.Remove(NewKeyValuePair("foo", "bar"))); in Remove_Pair() 248 Assert.AreEqual(NewKeyValuePair("foo", "bar"), array[1]); in CopyTo_Pair() 654 … private static KeyValuePair<TKey, TValue> NewKeyValuePair<TKey, TValue>(TKey key, TValue value) in NewKeyValuePair() method in Google.Protobuf.Collections.MapFieldTest
|