English 中文(简体)
Pex Generated Tests Encoded UCS-2 Little Endian, Why, how to change?
原标题:
  • 时间:2010-07-08 17:15:11
  •  标签:
  • pex

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 encoding? 2) how to change it so by default it uses Windows ANSI like the rest of the files

NOTE:I know this is the issue because i saved the file with Windows Ansi Encoding and it all works

最佳回答

I know I probably shouldnt but I went and posted this same question on the pex forum link to the question

and this was an Answer from Peli ( he is heavily involved in the Pex project AFAIK) Copy of the Answer

1) why is it using this encoding?

There is no particular reason for this, besides that we decide to use this particular encoding. We will switch on Windows-1252 (ANSI) encoding in the future for source files. XML files will still be encoded as UTF-8.

2) how to change it so by default it uses Windows ANSI like the rest of the files

Unfortunately, this is hard-coded in Pex and you cannot change this. The next release of Pex (0.93) will use ANSI.

问题回答

暂无回答




相关问题
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 ...

热门标签