예제 #1
0
        public void Simple()
        {
            var listBase = new ListBase <int> {
                3
            };

            listBase[0] = 4;
            Assert.IsTrue(listBase.Contains(4));
            Assert.IsFalse(listBase.Contains(3));
        }
예제 #2
0
        public void Simple()
        {
            var listBase = new ListBase <int>();

            listBase.AddRange(new [] { 3 });
            Assert.IsTrue(listBase.Contains(3));
        }
예제 #3
0
        public void Simple()
        {
            var listBase = new ListBase <int>();

            listBase.Insert(0, 3);
            Assert.IsTrue(listBase.Contains(3));
        }
예제 #4
0
파일: Add.cs 프로젝트: krs43/ngenerics
        public void Simple()
        {
            var listBase = new ListBase <int> {
                3
            };

            Assert.IsTrue(listBase.Contains(3));
        }
예제 #5
0
        private ListBase <string> LoadActiveMessageTypes()
        {
            ListBase <string> objActiveMessageTypes = new ListBase <string>();

            foreach (LogBase objLog in Logs)
            {
                foreach (MessageType objMessageType in objLog.MessageTypes)
                {
                    if (objMessageType.Enabled == true)
                    {
                        bool blnExists = objActiveMessageTypes.Contains(objMessageType.FullName);
                        if (blnExists == false)
                        {
                            objActiveMessageTypes.Add(objMessageType.FullName);
                        }
                    }
                }
            }

            return(objActiveMessageTypes);
        }
예제 #6
0
        public void Collection()
        {
            var listBase = new ListBase <int>(new[] { 3 });

            Assert.IsTrue(listBase.Contains(3));
        }
예제 #7
0
 public void Collection()
 {
     var listBase = new ListBase<int>(new[]{3});
     Assert.IsTrue(listBase.Contains(3));
 }
예제 #8
0
파일: Contains.cs 프로젝트: havok/ngenerics
 public void Simple()
 {
     var listBase = new ListBase<int> {3};
     Assert.IsTrue(listBase.Contains(3));
 }