NetOffice.Exceptions.PropertyGetCOMException: '<Failed to create Exception Message. Please report this bug.>'
InnerException
InvalidOperationException: Previous method 'Type.get_Namespace();' requires a return value or an exception to throw.
I am migrating code from Word.Interop where I am using RhinoMocks.
I also tried Moq but that also did not work (other errors).
Perhaps you can recommend a mocking framework that can be used together with NetOfficeFw?
Example:
Word.Document docMoc = Rhino.Mocks.MockRepository.GenerateStub();
docMoc.Stub(d => d.Creator).Return(4711);
throws:
NetOffice.Exceptions.PropertyGetCOMException: '<Failed to create Exception Message. Please report this bug.>' InnerException InvalidOperationException: Previous method 'Type.get_Namespace();' requires a return value or an exception to throw.
I am migrating code from Word.Interop where I am using RhinoMocks. I also tried Moq but that also did not work (other errors).
Perhaps you can recommend a mocking framework that can be used together with NetOfficeFw?