pex

Pex users: what are your Impressions of Pex and Automated Exploratory Testing in general?

Those of you who have used Pex, what do you think its advantages and disadvantages are of Pex as a tool? Also, what do you think are the advantages and disadvantages of "Automated Exploratory Testing" in general, as a supplement to TDD/Unit Testing? ...

Multi-lingual projects in Visual Studio

Would anyone know if there are plans or extensions to Visual Studio to allow for multi-lingual projects? While the .NET platform is truly polyglot, Visual Studio project are stubbornly monoglot which means that all the work that goes into tooling C# and VB is unusable from newer languages like F# and IronPython. PEX is an example of a ...

Open Source Projects that make use of Pex

Hi, I am interested in finding out more about the use of Pex, the testing framework for .NET. I am aware that the current version of Pex is only 0.11, but is anyone aware of an open source project that currently makes use of it? Thanks, MagicAndi. Update - Results So Far QuickGraph Functional-dotnet ...

Microsoft PEX with NUnit

I am thinking of using Microsoft PEX tools for my project, but I would much rather use NUnit instead of MSUnit. Apparently, PEX Extensions project was specifically created for that, but it has no releases now, and appears to be dead. Has anyone been able to do this? Thanks! ...

Reading from web.config while running Pex explorations

I've just started using Pex to generate parameterized unit-tests for my project. However, when I let Pex run its explorations, my code crashes because it cannot read from the web.config (ConfigurationSettings.AppSettings has zero elements to be more precise). The working-directory during the explorations is: "C:\Program Files (x86)\Micro...

Create Pex test to test a DLL and hardware controlled by that DLL?

Create Pex test to test a DLL and hardware controlled by that DLL? I have some hardware that has an api in that is controlled by a DLL. I have written some unit tests in nunit that will call the appropriate pieces of the API and do a test. For instance I might have a "get data test", that has an 1. open, 2. read on one side and 3. send...

Cannot install Pex (Win XP - SP2, VS2010 Beta 2)

When trying to install PEX, its been stuck at the "Please wait while installer determines disk space requirements" dialogue for over 7hours. I'm installing this on a virtual machine (virtual pc 2007 x64) As I have mentioned in the Title, the VPC is running XP Service Pack 2 and I have installed VS2010 Beta 2. Any ideas? ...

How to use PEX with NUnit tests in VS 2010?

Hi, 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 the "TestFramework" and "TestFrameworkDirectory". I Have tried many combinations but failed to achieve any success. ...

Pex and "\0" what is the correct name for this?

I am using Pex and keeps throwing "\0" at my string parameters. Through a little testing I found that it is some sort of end of string? I am looking for the official name for this to learn more about it but google is shallowing all the white spaces of "\0" making it a 0 and end of string does not turn up much either. Interstingly the ...

Can Pex (more specifically 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); Clearly while doing a unit test _ctx.Users is null. I can mock _ctx (the data context), but Users is a Table<T> and is sealed. So this fails: _c...

C# - What does "\0" equate to?

I am playing with Pex and one of the parameters it passes into my method is "\0". What does that mean? My guess is an empty string ("") based on the content of my method. However, if it is the same then why not just use "" instead of "\0"? Anyone know what it is? ...

Pex and previously written tests.

I am working a project with many NUnit tests, that were already written long time ago. What is the best way to run Pex on these tests and extend them? I try to run Pex on the methods that are being tested, but Pex wants to create new projects and new tests, and doesn't pick up the old ones. ...

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 the [assembly: PexLinqPackage] attribute to the test project. I have the reference added. But I have never had to add anything like [a...

How does Pex work

Hi, At a low level, how does Pex work? Thanks ...

Why Pex is not massive

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? ...

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 stuff at least internal sometimes. Thanks ...

Pex Generated Tests Encoded UCS-2 Little Endian, Why, how to change?

HI there i noticed that when I generate a pex test solution the default encoding of the files is UCS-2 Little Endian, this is not really cool, because all the rest of the files are normally encoded with Windows ANSI (I m getting this info from Notepadd ++) and its confirmed by my CI breaking Anyone knows 1) why is it using this encod...

Compatibility issue between VS2010, Pex, and SlimDX

I have downloaded June bits of Pex and June bits of SlimDX SDK. Installed them on my RTM VS2010 Premium. Pex explorations do not work. Reverting to Feb 2010 bits of SlimDX seem to cure the problem. I've asked the same question on Microsoft Forums and SlimDX forums, and neither party wants to own this. How can I even begin to troubles...

can I use the MbUnit gui with Moles tests?

I'd like to set up our unit tests to use Moles -- mostly so we don't write a lot of interfaces in places that don't call for interfaces. Ok, that part is debatable but it is a concern on our team. To that end, we're investigating Moles. Moles is nifty. Pex is nifty. The issue is that if we build a unit test that uses Moles, suddenly we...

PEX: How would you test an equality method in pex?

So i'm here playing with PEX, it seems like a great idea. However I am having a few problems, such as I have no way to test an equals method using parameter unit tests. Maybe there is no way, maybe its a technique i haven't figured out yet. Someone must have a decent idea. If i was doing this in moq for instance, I would ensure that...