I'm using MS Test, VS.NET 2010, I have JustMock Enabled and I'm mocking an ADO.NET SQL Entity.
Following the directions here: http://www.telerik.com/help/justmock/basic-usage-entity-framework-mocking.html
I'm getting this error:
Test method EntityTest threw exception:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Am I doing something wrong? Is this an issue with MS Test?
Following the directions here: http://www.telerik.com/help/justmock/basic-usage-entity-framework-mocking.html
[TestMethod]
public
void
EntityTest()
{
// Arrange
var siteFeatures =
new
List<SiteFeature>();
var entities = Mock.Create<MyEntities>();
Mock.Arrange(() => entities.SiteFeatures)
.ReturnsCollection(siteFeatures)
.MustBeCalled();
// Act
var exists = entities.SiteFeatures.FirstOrDefault(s => s.SiteId == 123) !=
null
;
// Assert
Assert.IsFalse(exists);
}
I'm getting this error:
Test method EntityTest threw exception:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Am I doing something wrong? Is this an issue with MS Test?