Home
last modified time | relevance | path

Searched refs:NewKeyValuePair (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs195 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