public void TryRemoveNullValue() { var map = new ConcurrentBidirectionalMap <string, string>(); string key; map.TryRemove("lala", null); }
public void TryRemoveValueNull() { var map = new ConcurrentBidirectionalMap <string, string>(); string key; map.TryRemoveValue(null, out key); }
public void TryRemoveNullKey() { var map = new ConcurrentBidirectionalMap <string, string>(); string key; map.TryRemove(null, "lala"); }
public void TryGetValueNull() { var map = new ConcurrentBidirectionalMap <string, string>(); string tmp; map.TryGetValue(null, out tmp); }
private ConcurrentBidirectionalMap <int, char> CreateMap() { var map = new ConcurrentBidirectionalMap <int, char>(); map.Store(1, 'a'); map.Store(2, 'b'); map.Store(3, 'c'); return(map); }
public void TryStoreNewTestMethod() { var map = new ConcurrentBidirectionalMap <int, char>(); MapAlteration expected; MapAlteration actual; expected = MapAlteration.AddedKey | MapAlteration.AddedValue; actual = map.Store(1, 'a'); Assert.AreEqual(expected, actual, "Add new key/value pair (1=a)"); expected = MapAlteration.AddedKey | MapAlteration.AddedValue; actual = map.Store(2, 'b'); Assert.AreEqual(expected, actual, "Add new key/value pair (2=b)"); expected = MapAlteration.AddedKey | MapAlteration.AddedValue; actual = map.Store(3, 'c'); Assert.AreEqual(expected, actual, "Add new key/value pair (3=c)"); Assert.AreEqual <int>(3, map.Count, "Number of entries"); Assert.IsTrue(map.TestIntegrity()); }
public void ContainsNullKey() { var map = new ConcurrentBidirectionalMap <string, string>(); map.Contains(null, "hello"); }
public void ContainsNullValue() { var map = new ConcurrentBidirectionalMap <string, string>(); map.Contains("hello", null); }
public void ContainsKeyNull() { var map = new ConcurrentBidirectionalMap <string, string>(); map.ContainsKey(null); }
public void TestTryStoreKeyNull() { var map = new ConcurrentBidirectionalMap <string, string>(); map.TryStore(null, "hello"); }
public void TestTryStoreValueNull() { var map = new ConcurrentBidirectionalMap <string, string>(); map.TryStore("hello", null); }