jozefizso / SystemWrapper

.NET library for easier testing of system APIs.
Microsoft Public License
175 stars 62 forks source link

Having problems using MOQ #55

Closed Leonardo-Ferreira closed 4 years ago

Leonardo-Ferreira commented 5 years ago

here's my code:

           var diMock = new Mock<IDirectoryInfo>();  
            diMock.Setup(i => i.Create());  
            try  
            {  
                var obj = diMock.Object;  
            }catch(Exception ex)  
            {  
                //SYSTEM.Runtime.Remoting.ObjRef exception here...  
            }

any ideas?

SlowLogicBoy commented 5 years ago

I can't reproduce this. Moq: 4.10.0 SystemWrapper: 0.25.0.186 (Interfaces and Wrappers)

jozefizso commented 4 years ago

Closing as external issue.