Title: Another step forward: Pull Members Up in ReSharperDescriptive info: Another step forward.. Pull Members Up in ReSharper.. Copy Paste.. implement method.. copy signature into interface.. Really?.. You have a structure like this:.. Implement metod:.. Use ReSharper/Refactor/Refactor This (.. Ctrl + Shift + R!.. ) on the method name:.. confirm default values:.. and you get this in IOrder:.. Simple and effective.. No comments:.. Post a Comment.. Older Post.. Post Comments (Atom).. Comments..

Title: Another step forward: Cannot convert lambda expression to type 'int' because it is not a delegate typeDescriptive info: Cannot convert lambda expression to type 'int' because it is not a delegate type.. Newer Post..

Original link path: /2012/12/cannot-convert-lambda-expression-to.html Open archive

Title: Another step forward: JustMock Practical ExperienceDescriptive info: JustMock Practical Experience.. A few months ago I've moved into a new development team.. Short Version.. Don't waste your time with JustMock.. Use another framework.. We are using nSubstitute now and we are satisfied.. This saves your time, energy and money.. Long Version.. I.. Promising Intro.. Mocking Framework Overview.. The feature list of Just Mock looks great.. You can find it here.. Our Environment.. We have been working on an ASP.. NET MVC project.. This project is built on.. NET 4.. 5 and developed in the Visual Studio 2012 since its prerelease versions.. The tests are written in MS Tests framework and with nUnit framework.. The development machine runs on Win8, and the server is 2008 R2.. Both machines run on 64bits.. The Journey Begins.. I started to use JustMock on my machine.. It looked good, first tests ran fine.. After Check-In the tests were failing on the build machine.. Well, I explored a documentation and I have found a guide how to configure the testing framework on the build machine.. Unfortunately I've failed.. There were some confusing steps in this guide.. As usually in most of help guides.. II.. Getting Into Troubles.. Telerik Support.. Fortunately we have paid support from Telerik.. I've created a ticket and after a few mails we created an online meeting to explore issues on our build server.. We walked through the guide, fixed a few misunderstandings and everything looked fine.. The meeting was finished with words like ".. you have to restart build server and everything will work fine".. The Telerik support team does a great job.. Seriously.. They spent with me about two hours and checked server settings with me.. Still Failing.. After a server restart the tests were still failing.. I had a "Profiler must be enabled" error message.. There is a property called IsProfilerEnabled and this had a false value.. On our development machine it was true.. Another ticket was written and another online meeting was scheduled.. Telerik Support Part II.. At this meeting we recognized two things.. When you run a test in debug the property IsProfilerEnabled has false value.. Without debug it was true.. We also stopped trying to run real tests.. We created small test only for JustMock.. A support engineer told me that they need more time to explore this behaviour.. At this moment I've failed.. I should have recognized the troubles and left this framework.. TFS 2012.. In meantime we have moved to TFS 2012.. The tests were still failing, but only on the build machine.. Another ticket was written, another online meeting was scheduled.. I've tried to configure the build workflow completely from start.. And then ... very new and.. 5 also.. Starting To Be Angry.. The Q3 version has been finally arrived.. Finally.. I hoped that all troubles would be smoothed.. No, they weren't.. The tests on the build machine were suddenly green, suddenly red.. But without a JustMock workflow.. I gave it up and started to look for another mocking framework.. Young Blood.. In our team we have a promising young developer.. He is interested in testing and he decided to try his own luck.. And, you know what? He was better than me! He recognized some mismatch in libraries versions and fixed them.. And he also recognized the dependency between tests! Wait, what? Dependency between tests?.. Dependency Between Tests.. We had a set of tests.. When you ran all of them, some of them were red.. When you ran only these red tests, they were green.. How is it possible? There are many ways to achieve this (bad tests).. We carefully checked the tests and there was only one common point.. JustMock.. nSubstitute.. I was very angry and I've decided to try an nSubstitute.. No configuration on the build, no "Profiler must be enabled" error messages.. I took a few problematic tests, which used JustMock, in a few minutes I rewrote them into nSubstitute, ran them on the build and all of them were green.. What a relief!.. Young Blood Failed (as me).. Previous tries to configure JustMock took us many days.. My colleague had only a day and half.. After this he had the same opinion as me.. Throw it out.. Lessons Learned.. Promising framework doesn't have to be good.. A paid option doesn't have to be better.. A senior developer doesn't have to be able to recognize when to stop.. A fresh developer can find what senior overlooks.. Final notice.. I apologise to my company, you gave me a promising framework but I've wasted your money.. On the other hand it can be only better.. Currently we are using a simpler framework.. But, you know what? It forces us to write a better code.. I hope that this story can save your time.. 1 comment:.. Samuel.. December 12, 2012 at 4:20 AM.. Wow, you described my last week.. It s the first time that read about nSubstitute after a couples or hours searching about the capabilities of this framework, I will switch to this one tomorrow.. I love the way you write; its very funny.. I will surely read your others posts.. Thank you again for your time, your knowledge and all @%**!!!# that you saved me trying to wrap my head around the multiple problems with JustMock.. Reply.. Delete.. Add comment.. Load more..

Original link path: /2012/11/justmock-practical-experience.html Open archive

Original link path: /2012/06/manage-windows-azure-from-ubuntu.html Open archive

Title: Another step forward: Total Commander - Shortcut for Custom CommandDescriptive info: Total Commander - Shortcut for Custom Command.. It isn't surprising that Total Commander is also configureable in this way.. Let's look at it.. Toolbar Button.. Let's say, that you have your own button which opens empty Notepad.. A short way to configure it is a right click on the toolbar, press Add and configure a command as you can see in the following picture:.. Configure Custom Keyboard Shortcut.. Well, you have your own command and now ... Options - Misc.. and focus on Redefine hotkeys (Keyboard mapping) area.. Configure Ctrl + Shift + N shortcut for Notepad.. Check Ctrl and Shift checkboxes and select N in combo box this way:.. Then click to the magnifier icon and select usercmd.. ini in Category.. Click on New and define a new command name:.. Click OK and set up command properties:.. We are done.. So easy and straightforward.. Enjoy your work from keyboard.. Trace WCF Service..

Original link path: /2012/05/total-commander-shortcut-for-custom.html Open archive

Title: Another step forward: November 2012Original link path: /2012_11_01_archive.html (No additional info available in detailed archive for this subpage)

Title: Another step forward: June 2012Original link path: /2012_06_01_archive.html (No additional info available in detailed archive for this subpage)

Title: Another step forward: May 2012Descriptive info: May 29, 2012.. Existing WCF service is in faulted state.. It isn t responding.. You are the owner of this service and you are trying to solve how to identify what s wrong.. The answer is tracing.. How to do it is shown in this article.. 1:20 PM.. WCF..

Title: Another step forward: March 2012Descriptive info: March 3, 2012.. nUnit tests support in VS 11.. A good news for everyone who has unit testing in their daily bread.. VS 11 currently support nUnit, xUnit, QUnit and a few other testing frameworks.. Not natively, but via extensions.. Well, at last! The extension for nUnit is currently available in a beta version.. 10:02 PM..