Lawo.ComponentModel.PropertyChangedTest.ExceptionTest C# (CSharp) Method

ExceptionTest() private method

private ExceptionTest ( ) : void
return void
        public void ExceptionTest()
        {
            AssertThrow<ArgumentNullException>(
                () => new PropertyChangedRegistration(null, new Addend().GetProperty(o => o.AddendValue)).Dispose(),
                () => new PropertyChangedRegistration((s, e) => { }, null).Dispose());
            AssertThrow<ArgumentException>(
                () => new PropertyChangedRegistration((s, e) => { }, NullProperty).Dispose());
            new Exceptional().Ignore();
        }