Example #1
0
        public void should_customize_event_accessor()
        {
            var demoObject = new CustomizeEventAccessorDemoClass();

            // change the variable value to fix the test.
            var expectedExceptionType = typeof(ArgumentNullException);

            Assert.Throws(expectedExceptionType, () => demoObject.Event += null);
        }
        public void should_customize_event_accessor()
        {
            var demoObject = new CustomizeEventAccessorDemoClass();

            // change the variable value to fix the test.
            var expectedExceptionType = typeof(Exception);

            Assert.Throws(expectedExceptionType, () => demoObject.Event += null);
        }