Tag Archives: Visual Studio

C# Code Snippet for Unit Tests

After coding unit tests the whole day, I decided to create a nice Visual Studio snippet which helps me to write the test method quicker. I usually structure my unit tests like this: public void Validate_ReturnsFalse_WhenStringIsTooLong() { // Arrange var expectedResult = false; var watheverMock = new Mock<IWathever>(); // Act var validator = new Validator(watheverMock.Object);… Read More »

Architecture validation with Visual Studio 2010 Ultimate

The new version of Visual Studio (Ultimate) brings a lot of new architecture features with it. It allows you to create UML sequence diagrams from extisting code. Or it visualizes the most important components in your application. This visualizations are very helpful when you have to modificate/extend an existing project written by other developers. Here… Read More »