Exemplo n.º 1
0
            public void List_Contains_WithInvalidItem_DoesNotFindItem()
            {
                var source = new List <int> {
                    13
                };
                var  list   = new ReadWriteList <int>(source);
                bool result = list.Contains(17);

                Assert.IsFalse(result, "Item should not be found.");
            }
Exemplo n.º 2
0
            public void List_Contains_WithValidItem_FindsItem()
            {
                var source = new List <int> {
                    13
                };
                var  list   = new ReadWriteList <int>(source);
                bool result = list.Contains(13);

                Assert.IsTrue(result, "Item should be found.");
            }