public void GetDeclaringType_InvalidDeclaringType_ThrowsException()
        {
            var candidate = new DynamicMethod("", typeof(object), Type.EmptyTypes);

            candidate.GetDeclaringType();
        }
        public void GetDeclaringType_InvalidDeclaringType_ThrowsException()
        {
            var candidate = new DynamicMethod("", typeof(object), Type.EmptyTypes);

            Assert.Throws <ArgumentException>(() => candidate.GetDeclaringType());
        }