コード例 #1
0
        public void ReferenceConstrainedType_Delegate_Test()
        {
            var del = new ReferenceConstrainedType <EventHandler>();

            Assert.IsNotNull(del);
        }
コード例 #2
0
        public void ReferenceConstrainedType_CustomClass_Test()
        {
            var emp = new ReferenceConstrainedType <Employee>();

            Assert.IsNotNull(emp);
        }
コード例 #3
0
        public void ReferenceConstrainedType_Interface_Test()
        {
            var type = new ReferenceConstrainedType <ISaveable>();

            Assert.IsNotNull(type);
        }
コード例 #4
0
        public void ReferenceConstrainedType_Array_Test()
        {
            var array = new ReferenceConstrainedType <int[]>();

            Assert.IsNotNull(array);
        }
コード例 #5
0
        public void ReferenceConstrainedType_Class_Test()
        {
            var strings = new ReferenceConstrainedType <string>();

            Assert.IsNotNull(strings);
        }