public void op_Check_whenExpectedException()
        {
            var obj = new PropertySetterTest(typeof(PropertiedClass1).GetProperty("AutoBoolean"), false)
            {
                ExpectedException = typeof(ArgumentException)
            };

            Assert.Throws <UnitTestException>(() => obj.Check());
        }
        public void op_Check_whenExpectedException()
        {
            var obj = new PropertySetterTest(typeof(PropertiedClass1).GetProperty("AutoBoolean"), false)
                          {
                              ExpectedException = typeof(ArgumentException)
                          };

            Assert.Throws<UnitTestException>(() => obj.Check());
        }
        public void prop_ExpectedException()
        {
            var expected = typeof(ArgumentException);

            var obj = new PropertySetterTest(null, false)
            {
                ExpectedException = expected
            };

            var actual = obj.ExpectedException;

            Assert.Same(expected, actual);
        }
        public void prop_Expected()
        {
            const bool expected = true;

            var obj = new PropertySetterTest(null, false)
            {
                Value = expected
            };

            var actual = obj.Value;

            Assert.Equal(expected, actual);
        }
        public void prop_ExpectedException()
        {
            var expected = typeof(ArgumentException);

            var obj = new PropertySetterTest(null, false)
                          {
                              ExpectedException = expected
                          };

            var actual = obj.ExpectedException;

            Assert.Same(expected, actual);
        }
        public void prop_Expected()
        {
            const bool expected = true;

            var obj = new PropertySetterTest(null, false)
                          {
                              Value = expected
                          };

            var actual = obj.Value;

            Assert.Equal(expected, actual);
        }