コード例 #1
0
		public void CanInsert_IntoCollection()
		{
			DetailCollection collection = new DetailCollection();
			collection.Insert(0, "hello");
			collection.Insert(0, "world");

			Assert.That(collection.IndexOf("hello"), Is.EqualTo(1));
			Assert.That(collection.IndexOf("world"), Is.EqualTo(0));
		}
コード例 #2
0
        public void CanInsert_IntoCollection()
        {
            DetailCollection collection = new DetailCollection();

            collection.Insert(0, "hello");
            collection.Insert(0, "world");

            Assert.That(collection.IndexOf("hello"), Is.EqualTo(1));
            Assert.That(collection.IndexOf("world"), Is.EqualTo(0));
        }