示例#1
0
        public void BAGFindTest()
        {
            BAG <ST> findBag = new BAG <ST> {
                new ST("String1"),
                new ST("String2"),
                new ST("String3")
            };

            //throw new Exception("Find method does not exist for BAG.");

            Assert.AreEqual(3, findBag.Count);
            Assert.AreNotEqual(null, findBag.Find(o => o.Value.Equals("String1")));
        }
示例#2
0
        public void BAGFindTest()
        {

            BAG<ST> findBag = new BAG<ST>{
                new ST("String1"),
                new ST("String2"),
                new ST("String3")
            };
            //throw new Exception("Find method does not exist for BAG.");
             
            Assert.AreEqual(3, findBag.Count);
            Assert.AreNotEqual(null, findBag.Find(o=>o.Value.Equals("String1")));

        }