public void GetObjectData_InvalidArguments_ThrowsException()
{
Assert.Throws<ArgumentNullException>("obj", () => FormatterServices.GetObjectData(null, new MemberInfo[0]));
Assert.Throws<ArgumentNullException>("members", () => FormatterServices.GetObjectData(new object(), null));
Assert.Throws<ArgumentNullException>("members", () => FormatterServices.GetObjectData(new object(), new MemberInfo[1]));
Assert.Throws<SerializationException>(() => FormatterServices.GetObjectData(new object(), new MethodInfo[] { typeof(object).GetMethod("GetHashCode") }));
}