public void ExceptionCollection_GetObjectData_ThrowsPlatformNotSupportedException()
        {
            var collection = new ExceptionCollection(new ArrayList());

            Assert.Throws <PlatformNotSupportedException>(() => collection.GetObjectData(null, new StreamingContext()));
        }
コード例 #2
0
        public void ExceptionCollection_GetObjectData_NullInfo_ThrowsArgumentNullException()
        {
            var collection = new ExceptionCollection(new ArrayList());

            Assert.Throws <ArgumentNullException>("info", () => collection.GetObjectData(null, new StreamingContext()));
        }