xunitcontrib + ReSharper 4.5.1

by Matt 31. July 2009 16:03

Just the other day, JetBrains released ReSharper 4.5.1. There are no major changes; it’s a maintenance release.

And the good news is, the latest version of xunitcontrib (0.3.1) works just fine with it. No changes. Nothing.

But there’s one nice, new, quiet, little feature.

ReSharper 4.5 added naming style rules, such that you would get a visible squiggly warning when classes weren’t named InCamelCase and variables weren’t lowerCaseCamel.

Too bad for those upstart BDD folks that like to ape Ruby with Significant_use_of_the_underscore_character when naming their tests (“underscore porn”). These guys would get a warning under their test methods.

ReSharper warns that test method does not match naming standard

We can fix this in 4.5.1 by adding a user defined naming rule. Go to the ReSharper options dialog, and select Naming Style from the tree on the left hand side. Then select Add in the bottom half of this dialog. We get a new window:

The ReSharper user defined naming rule dialog

We want to set the rule just as in the picture – give it a description, select Test type and Test method (property) and then select First_upper.

And now our Interestingly_named_methods are no longer marked as being non-standard, and our “normally” named tests are prompted for renaming.

BoringCSharpNamingStandard

Cool. But what about your existing, non-BDD style tests? You don’t have to rename those. Simply add a new naming style to the rule you’ve just created. So not only does the rule for test elements enforce Uppercase_with_underscores, it also enforces UpperCamelCase. Very handy.

And in case you missed why I’m pointing this out, ReSharper is smart enough to realise that this rule applies to any test identified by a test provider, such as xunitcontrib. Those examples above are xunit Facts.

And the best bit? I didn’t have to do any work.

Tags: , ,

Comments (62) -

Peddos
Peddos
4/19/2011 11:00:05 AM #

I really loved your blog! I got a porno for you, check it out.

Reply

some free stuff
some free stuff
5/6/2011 8:24:49 PM #

thats very well written =]. i do find most of the stuff you have mentioned very useful and connecting to my audiences. if only i have learnt about all this stuff earlier. i only discovered them in recent months.

Reply

suv comparison
suv comparison
7/20/2011 10:25:43 PM #

Per il tuo bambino scegli Moncler. Una scelta di capi, estivi ed invernali, eccezionali. Tuo figlio sarà sempre alla moda e potrà muoversi in totale comodità.

Reply

hybrid vehicle
hybrid vehicle
7/21/2011 12:48:28 PM #

Fantastic task I like your type! Would really like to right here your feedback on my website! I am also seeking for someone to help you me make websites!

Reply

Douglas Ramler
Douglas Ramler United States
1/6/2016 2:49:39 PM #

Congratulations, Neil! I love this site and I know I'll love the book. Christmas, birthdays, Father's Day 2010  check!

Reply

Rich Bowdry
Rich Bowdry United States
1/15/2016 4:33:55 AM #

the style of keeping you connected with so many things of different types is awesome and you find it interesting everytime.

Reply

Micheline Trafton
Micheline Trafton United States
1/15/2016 4:57:02 AM #

Thaaaat IS awesome! lol hehe

Reply

Francisco Brixner
Francisco Brixner United States
1/15/2016 6:06:29 AM #

Congrats! So glad to see this site getting the recognition it deserves, the world can always use a little more awesome.

Reply

Wai Freifeld
Wai Freifeld United States
1/15/2016 6:07:42 AM #

Let me be the first to say: Congrats, Neil! I've been following this site from day one, and have loved every single day of awesomeness that it has delivered. You deserve all the success coming your way. Keep it up!AWESOME!

Reply

Micheline Trafton
Micheline Trafton United States
1/15/2016 6:43:18 AM #

Congratulations, Neil! I love this site and I know I'll love the book. Christmas, birthdays, Father's Day 2010  check!

Reply

Betsy Ragans
Betsy Ragans United States
1/15/2016 7:12:00 AM #

getting laid AWSOME

Reply

Jose Bacone
Jose Bacone United States
1/15/2016 7:15:18 AM #

Thaaaat IS awesome! lol hehe

Reply

Thersa Tomich
Thersa Tomich United States
1/15/2016 8:27:47 AM #

Congrats! So glad to see this site getting the recognition it deserves, the world can always use a little more awesome.

Reply

Patrica Guccione
Patrica Guccione United States
1/15/2016 8:29:06 AM #

Congrats! This is such a great website, I know it will translate well into book form. Which is AWESOME!

Reply

Dan Geschke
Dan Geschke United States
7/13/2016 4:05:33 AM #

thanx for the post

Reply

webjob
webjob United States
8/29/2016 8:14:05 AM #

I am following often your posts and I noticed that every post contains an informative value. I have benefited from your website in many ways and I suggested this site to my friends.There is no doubt that they will like it.

Reply

James Fly
James Fly United States
9/26/2016 4:10:05 AM #

Это такой хороший сайт с большим количеством полезной информации . Приходите присоединиться к нашему новый бесплатный социальный сайт, как Facebook . У нас есть группы друзей , объявления, сайт знакомств играть в игры бесплатно для всех на http://mysocialspot.ca/

Reply

Angelika Sotak
Angelika Sotak United States
11/11/2016 10:03:53 PM #

Promotion is healthy, because it makes people aware of a product you have. If you have skills in technology such as Objective C, Cocoa, and Xcode, then feel free to develop your app. Do some research on current trends and what your target users want (and don't want!).

Reply

amazing sex videos
amazing sex videos United States
2/6/2017 12:22:54 PM #

Hello! I simply wish to give you a huge thumbs up for your excellent information you have got right here on this post. I will be coming back to your blog for more soon.

Reply

Irving Hibl
Irving Hibl United States
3/27/2017 3:27:32 AM #

This is a awesome website with some great information

Reply

apk downloads
apk downloads United States
4/9/2017 11:17:01 AM #

I have another website may download apk from Google Play: http://www.apksmart.com

Reply

download google play apk free
download google play apk free United States
4/10/2017 7:29:44 PM #

check this site, it also could download apk directly from Google Play: http://www.apksmart.com

Reply

apk downloader
apk downloader United States
4/15/2017 3:22:50 AM #

I have another website may fetch apk from Google Play: http://www.apksmart.com

Reply

download google play apk
download google play apk United States
4/19/2017 1:36:19 PM #

I got another site may download apk from Google Play: http://www.apksmart.com

Reply

remedios caseros para el acne
remedios caseros para el acne United States
10/6/2017 1:33:16 AM #

I relish, cause I discovered exactly what I used to be taking a look for. You've ended my 4 day long hunt! God Bless you man. Have a great day. Bye

Reply

Imelda Vermont
Imelda Vermont United States
5/21/2018 10:04:45 PM #

I can't believe how great this site is. You keep up the good work. That's my advice pal.

Reply

Olin Doren
Olin Doren United States
5/22/2018 5:45:44 PM #

Just fabulous. Who wrote this and how can we get more?

Reply

baexkitty
baexkitty United States
5/22/2018 9:54:38 PM #

She may take her panties off at any time!

Reply

Funny Website
Funny Website United States
5/23/2018 3:17:03 PM #

Have a good laugh at this site.

Reply

Thurman Eckmeyer
Thurman Eckmeyer United States
9/27/2018 6:55:10 PM #

Somebody essentially lend a hand to make severely posts I'd state. This is the first time I frequented your web page and so far? I surprised with the analysis you made to create this particular publish incredible. Excellent process!

Reply

Carole Swoap
Carole Swoap United States
9/28/2018 3:39:58 AM #

F*ckin’ amazing things here. I’m very glad to see your post. Thanks a lot and i am looking forward to contact you. Will you please drop me a mail?

Reply

Adolph Giancola
Adolph Giancola United States
9/28/2018 5:42:42 AM #

An attention-grabbing dialogue is worth comment. I believe that you need to write more on this subject, it may not be a taboo topic but usually individuals are not sufficient to speak on such topics. To the next. Cheers

Reply

Otha Putney
Otha Putney United States
9/28/2018 7:13:39 PM #

I loved this post. You describe this topic adequately. When hiring home contractors it truly is critical for choose a trusted name in construction. Experienced and efficient staff should strive for excellence and absorb every detail of your house.

Reply

Carlotta Shilleh
Carlotta Shilleh United States
9/29/2018 1:16:00 AM #

There are a few fascinating points with time in the following paragraphs but I do not know if I see every one of them center to heart. There may be some validity but I’m going to take hold opinion until I look into it further. Great write-up , thanks and that we want much more! Added to FeedBurner likewise

Reply

Mickey Hollerman
Mickey Hollerman United States
9/29/2018 11:46:05 AM #

Have you ever thought about creating an ebook or guest authoring on other blogs? I have a blog centered on the same information you discuss and would really like to have you share some stories/information. I know my readers would value your work. If you are even remotely interested, feel free to shoot me an e-mail.

Reply

Evita Palme
Evita Palme United States
9/29/2018 2:45:47 PM #

Can I just say what a relief to find somebody who truly knows what theyre talking about on the internet. You undoubtedly know easy methods to bring an issue to light and make it important. Extra individuals need to read this and perceive this side of the story. I cant consider youre not more fashionable since you undoubtedly have the gift.

Reply

Eugene Fego
Eugene Fego United States
9/29/2018 6:33:25 PM #

A powerful share, I simply given this onto a colleague who was doing a little bit analysis on this. And he the truth is bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying extra on this topic. If possible, as you turn into expertise, would you mind updating your blog with extra details? It is highly helpful for me. Big thumb up for this blog submit!

Reply

Jason Heppeard
Jason Heppeard United States
9/29/2018 6:39:46 PM #

I’ve viewed some different blog posts with regards to this topic, and I must state that yours shows the most insight.  Thanks a lot for expressing your opinions with everyone here.

Reply

最新優惠
最新優惠 United States
10/7/2018 1:06:35 PM #

強韌活力的北之薏仁精華 成就強健無憂的水潤美肌

Reply

Anna Albarracin
Anna Albarracin United States
10/9/2018 2:06:52 AM #

We're a group of volunteers and starting a new scheme in our community. Your site offered us with valuable information to work on. You have done a formidable job and our entire community will be grateful to you.

Reply

Forrest Jaremka
Forrest Jaremka United States
10/9/2018 8:51:55 AM #

Hello, i think that i saw you visited my blog thus i came to “return the favor”.I am attempting to find things to enhance my website!I suppose its ok to use some of your ideas!!

Reply

付款方法
付款方法 United States
10/9/2018 11:33:50 AM #

搜尋引擎優化

Reply

Hue Obermier
Hue Obermier United States
10/9/2018 8:11:22 PM #

I’m not sure the place you are getting your info, however good topic. I must spend a while learning much more or understanding more. Thanks for fantastic information I used to be looking for this information for my mission.

Reply

Lora Armentrout
Lora Armentrout United States
10/10/2018 1:07:11 AM #

Someone essentially help to make seriously posts I would state. This is the first time I frequented your web page and thus far? I amazed with the research you made to create this particular publish amazing. Magnificent job!

Reply

Lucien Tonge
Lucien Tonge United States
10/10/2018 7:04:37 AM #

WONDERFUL Post.thanks for share..more wait .. …

Reply

Shawanna Kapler
Shawanna Kapler United States
10/11/2018 8:42:00 AM #

Hello! Do you use Twitter? I'd like to follow you if that would be ok. I'm absolutely enjoying your blog and look forward to new posts.

Reply

Walton Varcoe
Walton Varcoe United States
10/11/2018 1:14:03 PM #

Greetings from Carolina! I'm bored to tears at work so I decided to browse your blog on my iphone during lunch break. I love the knowledge you provide here and can't wait to take a look when I get home. I'm surprised at how quick your blog loaded on my cell phone .. I'm not even using WIFI, just 3G .. Anyhow, great blog!

Reply

Dorene Kessler
Dorene Kessler United States
10/11/2018 5:42:12 PM #

Wow that was strange. I just wrote an incredibly long comment but after I clicked submit my comment didn't appear. Grrrr... well I'm not writing all that over again. Anyway, just wanted to say great blog!

Reply

JUVEDERM由透明質酸Hyaluronic Acid(一種天然多醣體)製造而成,並具有幼滑及高凝聚力的配方。透明質酸(HA)是皮膚組織的主要成份之一,能自然存在於人體肌膚內 JUVEDERM所用的透明質酸非由動物身體提取,可鎖住水份保濕皮膚,從而增加皮膚密度並改善質感 Juvederm 玻尿酸 加強優化面部輪廓,可被身體完全吸引,能自然地修飾面部輪廓 功效可長達24個月以上 JUVEDERM的特點: 效果立即可見 非永久性 非手術性 安全有效 效果自然  JUVEDERM獲歐盟(CE)及美國及藥物管理局(FDA)認證 首先及唯一獲得FDA認證在首次療程後能維持長達一年2-4功效 新世代專員Hylacross科技為產品帶來獨特的物理特質,包括凝聚力、支撐力及柔順度 這是一套由全球著名醫學美容醫生Dr. Maurício de Maio,以JUVÉDERM®系列透明質酸產品為基礎而研發的面部優化療程,藉著簡單程序便達致面部優化效果,不需進行手術,減低風險。

Reply

Hal Rosman
Hal Rosman United States
10/12/2018 2:01:17 PM #

The very heart of your writing whilst sounding reasonable in the beginning, did not sit very well with me after some time. Somewhere within the paragraphs you actually managed to make me a believer but only for a while. I still have got a problem with your jumps in logic and one might do nicely to fill in all those gaps. In the event you actually can accomplish that, I would certainly be impressed.

Reply

Mariette Maenaga
Mariette Maenaga United States
10/13/2018 8:49:47 AM #

Some really interesting information, well written and broadly user genial.

Reply

Walter Amyx
Walter Amyx United States
10/13/2018 7:36:02 PM #

Aw, i thought this was quite a nice post. In concept I must set up writing like this additionally – spending time and actual effort to make a great article… but exactly what do I say… I procrastinate alot through no means appear to go carried out.

Reply

醫學美容 訂針 cosmetic.wiki
醫學美容 訂針 cosmetic.wiki United States
10/13/2018 10:30:34 PM #

時光精靈夜晚更新乳  時光精靈夜晚更新乳      

Reply

Ricky Embler
Ricky Embler United States
10/15/2018 12:30:59 AM #

My brother recommended I might like this blog. He was entirely right. This post truly made my day. You cann't imagine simply how much time I had spent for this information! Thanks!

Reply

醫學美容 速效 cosmetic.wiki
醫學美容 速效 cosmetic.wiki United States
10/16/2018 10:27:59 AM #

【晶亮瓷】【微晶瓷Radiesse_asia】│拉提‧山根隆鼻‧蘋果肌‧下巴‧額頭: Radiesse  【晶亮瓷】【微晶瓷Radiesse_asia】│拉提‧山根隆鼻‧蘋果肌‧下巴‧額頭: Radiesse      

Reply

紋眉
紋眉 United States
10/16/2018 1:36:43 PM #

打擊細紋、皺紋與暗沉,展現更年輕的外貌。

Reply

面部
面部 United States
10/17/2018 9:02:34 AM #

有關、抽脂手術、脂肪存活、存活、自體脂肪移植、自體脂肪注射、全臉補脂、自體脂肪隆乳等一些術前術後、詳細敘述比較。

Reply

醫學美容 美肩 cosmetic.wiki
醫學美容 美肩 cosmetic.wiki United States
10/17/2018 1:00:47 PM #

COMPAGNIE DE PROVENCE 愛在普羅旺斯 【居家香氛系列】玫瑰室內芳香劑的商品介紹   COMPAGNIE DE PROVENCE 愛在普羅旺斯,居家香氛系列,玫瑰室內芳香劑       

Reply

Carlita Tice
Carlita Tice United States
10/18/2018 8:38:08 PM #

As I website possessor I believe the content material here is rattling wonderful , appreciate it for your efforts. You should keep it up forever! Best of luck.

Reply

醫學美容 推荐 cosmetic.wiki
醫學美容 推荐 cosmetic.wiki United States
10/19/2018 1:01:48 PM #

Let’s Sparkling!塑造完美聖誕派對造型    Marie Claire (HK) Edition  聖誕派對一個接一個,豈可以缺少一身閃令令的打扮。美國著名高級時裝品牌St. John,今個聖誕帶來了全新早春2018系列,讓你輕易塑造閃亮及型格的聖誕造型。  早春2018系列    

Reply

Shera Reisher
Shera Reisher United States
10/19/2018 11:13:35 PM #

Magnificent web site. A lot of useful info here. I’m sending it to several friends ans also sharing in delicious. And of course, thanks for your sweat!

Reply

Danelle Fecher
Danelle Fecher United States
10/20/2018 10:11:11 AM #

Super-Duper website! I am loving it!! Will be back later to read some more. I am bookmarking your feeds also.

Reply

Add comment

biuquote
  • Comment
  • Preview
Loading

Rel=Me

Month List

RecentComments

Comment RSS