public void E1_GetKeyNullException() { IL9 <String, Int32> collection = new L9 <String, Int32>(); collection.Put("K2", 2); collection.Get(null); }
public void E1_TestGetException() { IL9 <String, Int32> collection = new L9 <String, Int32>(); collection.Put("K1", 1); collection.Put("K2", 2); Assert.AreEqual(0, collection.Get("K100")); }
public void E1_TestGetInt32Value() { IL9 <String, Int32> collection = new L9 <String, Int32>(); collection.Put("K2", 2); collection.Put("K4", 2); collection.Put("K3", 2); collection.Put("K5", 1); collection.Put("K1", 1); collection.Put("K5", 1); Console.Out.WriteLine(collection.ToString()); Assert.AreEqual(2, collection.Get("K2")); }
public void E1_TestAddValuesStringKey() { IL9 <String, String> collection = new L9 <String, String>(); collection.Put("K2", "a"); collection.Put("K4", "b"); collection.Put("K3", "c"); collection.Put("K5", "d"); collection.Put("K1", "e"); collection.Put("K5", "f"); Console.Out.WriteLine(collection.ToString()); Assert.AreEqual("d", collection.Get("K5")); }
public void E2_TestAddValuesInt32LimitedKey() { IL9 <String, Int32> collection = new L9 <String, Int32>(2); collection.Put("K2", 2); collection.Put("K4", 2); collection.Put("K3", 2); collection.Put("K5", 1); collection.Put("K1", 1); collection.Put("K5", 1); Console.Out.WriteLine(collection.ToString()); Assert.AreEqual(1, collection.Get("K5")); }