Example #1
0
        public BooleanTypePropertyTest(DrtBase drt, object instance, string propertyName) : base(drt)
        {
            _tests = new ArrayList();

            TestUnit test;

            test = new AccessPropertyTest(drt, instance, propertyName, true);
            _tests.AddRange(test.Tests);

            test = new AccessPropertyTest(drt, instance, propertyName, false);
            _tests.AddRange(test.Tests);
        }
Example #2
0
        public EnumTypePropertyTest(DrtBase drt, object instance, string propertyName, Type type) : base(drt)
        {
            _tests = new ArrayList();

            TestUnit test;

            foreach (int val in Enum.GetValues(type))
            {
                object newValue = Enum.Parse(type, Enum.GetName(type, val));

                test = new AccessPropertyTest(drt, instance, propertyName, newValue);
                _tests.AddRange(test.Tests);
            }
        }