English 中文(简体)
workaround pex internal class
原标题:
  • 时间:2010-07-02 16:39:38
  •  标签:
  • pex

Is there any way to make pex work when the classes under test are internal? how about sealed classes?

I mean after all this type of tool is really good for API testing, you are likely to want to keep stuff at least internal sometimes.

Thanks

最佳回答

Give the test assembly internal visibility through the InternalsVisibleToAttribute. Pex will then be able to see internal types and test them.

问题回答

暂无回答




相关问题
workaround pex internal class

Is there any way to make pex work when the classes under test are internal? how about sealed classes? I mean after all this type of tool is really good for API testing, you are likely to want to keep ...

Why Pex is not massive [closed]

Hi there: I was looking at a few videos, etc and I just cant help but wonder why Pex usage seems to be so low? Are there any problems that are not obvious, or is it just a licence issue?

Is Pex (Test generation) really useful tool?

Yes, it is possible to generate tests on boundary values for functions like "Sum" or "Divide". Pex is a good tool here. But more often we create tests on business behaviour. Let s consider example ...

How to add [assembly: PexLinqPackage] to a test project

I am trying to get Pex to work with linq in my project. I got this explanation on what I need to do: In order for Pex to support Linq, make sure you add a reference to Microsoft.Pex.Linq.dll and add ...

C# - What does "" equate to?

I am playing with Pex and one of the parameters it passes into my method is "". What does that mean? My guess is an empty string ("") based on the content of my method. However, if it is the same ...

Can Moles be used to create a sealed class?

I am trying to mock my Linq To SQL classes. I have the following code: IQueryable<User> vUser = (from aUser in _ctx.Users where aUser.UserName == userName select aUser); ...

How to use PEX with NUnit tests in VS 2010?

I am aware that the current release of PEX allows use with the NUnit framework. The thing is I can t configure it to use the NUnit framework. In the Options -> PEX: What Exactly do i have to put in ...

热门标签