public void ReferenceConstrainedCollectionType_Class_Test()
        {
            var strings = new ReferenceConstrainedCollection <string>();

            strings.Add("Hello");
            strings.Add("World");
            Assert.IsNotNull(strings);
        }
        public void ReferenceConstrainedCollectionType_Array_Test()
        {
            var intArray = new ReferenceConstrainedCollection <int[]>();

            intArray.Add(new[] { 1, 2, 3 });
            intArray.Add(new[] { 10, 20, 30, 40, 50 });
            Assert.IsNotNull(intArray);
        }
        public void ReferenceConstrainedCollectionType_Delegate_Test()
        {
            var delegates = new ReferenceConstrainedCollection <EventHandler>();
            var e1        = new EventHandler(Say);
            var e2        = new EventHandler(Say);

            delegates.Add(e1);
            delegates.Add(e2);
            Assert.IsNotNull(delegates);
        }
        public void ReferenceConstrainedCollectionType_Object_Test()
        {
            var objects = new ReferenceConstrainedCollection <Object>();

            objects.Add(1);
            objects.Add("Hello");
            objects.Add(new[] { 1, 2, 3, 4, 5 });
            objects.Add(new[] { "Hello", "World" });
            Assert.IsNotNull(objects);
        }
        public void ReferenceConstrainedCollectionType_CustomClass_Test()
        {
            var employess = new ReferenceConstrainedCollection <Employee>();

            employess.Add(new Employee {
                Id = 1, Name = "Prasad"
            });
            employess.Add(new Employee {
                Id = 2, Name = "Scott"
            });
            Assert.IsNotNull(employess);
        }