コード例 #1
0
		public void GetElementByInsertionOrder_Test()
		{
			StableDictionary<int, string> dictionary = new StableDictionary<int, string>();
			dictionary.Add(4, "a");
			dictionary.Add(3, "b");
			dictionary.Add(2, "c");
			dictionary.Add(1, "d");	
			Assert.AreEqual("d", dictionary.GetElementByInsertionOrder(3));
		}
コード例 #2
0
        public void GetElementByInsertionOrder_Test()
        {
            StableDictionary <int, string> dictionary = new StableDictionary <int, string>();

            dictionary.Add(4, "a");
            dictionary.Add(3, "b");
            dictionary.Add(2, "c");
            dictionary.Add(1, "d");
            Assert.AreEqual("d", dictionary.GetElementByInsertionOrder(3));
        }
コード例 #3
0
        public void GetElementByInsertionOrder_WrongPosition()
        {
            StableDictionary <int, string> dictionary = new StableDictionary <int, string>();

            dictionary.GetElementByInsertionOrder(-1);
        }
コード例 #4
0
		public void GetElementByInsertionOrder_WrongPosition()
		{
			StableDictionary<int, string> dictionary = new StableDictionary<int, string>();
			dictionary.GetElementByInsertionOrder(-1);
		}