Closed mmamone closed 8 years ago
@mmamone sorry, this issue slipped my notice! I'll take a look this weekend.
@mmamone can you elaborate on what the error is? Are you suggesting that AutoMocker
is relying on the specific compiler-generated names for the backing fields? But yeah, whatever error message/stack trace you could provide would be a big help.
Closing, but will re-open if more details emerge.
We are using ReactiveUI.Fody with C#6, so are taking advantage of property initialisers. If we have the following code :
The unit tests (that use AutoMocker) fail to run, as they are searching for the backing field (not explicitly). If, however, we initialise the property in the constructor, the problem goes away (but we lose the usage of property initialisers).