Mono Testing Isolation Medium

After reading the good things about Moles, I would like to add an isolation environment to our toolkit for writing unit tests.

Our application runs under Mono, as it is deployed on both Linux and Windows, and I cannot find a framework that supports Mono.

I have seen several articles on how to manipulate assemblies using Cecil, but I'm struggling to find something that could really be used.

+5
source share
2 answers

Moles seems to be working with JIT, so I expect it to be very attached to the Microsoft implementation.

, Moq , . Moq .

using Moq;

var mock = new Mock<MyClass> { CallBase = true };
mock.Setup( x => x.MyMethod() ).Returns ( 1 );

Moq NUnit, .

+4

TypeMock @IanNorton.

0

All Articles