Navigate / search

FluentValidation.Validators.UnitTestExtension version 1.4

I just managed to publish a new version of package FluentValidation.Validators.UnitTestExtension. This package allows you to write unit tests for Fluent Validators in a more effective way.

With version 1.4 following changes have been introduced:

  • new verifiers that check the configuration of EnumValidator, MaxLengthValidator, MinLenghtValidator, ExactLengthValidator, ExclusiveBetweenValidator and InclusiveBetweenValidator
  • support for .NETStandard 1.6 and .NETStandard 2.0

More information about the project is available on GitHub.

How you can improve code quality in your project?

Last Saturday during my lecture about code quality I was a bit shocked how many people didn’t know the most accessible tools that can improve code quality. You should remember that cost of quality improvements will be low only when we will think about those issues from the early beginning of the project. Every additional day when we are not monitoring and improving quality will increase the cost of potential quality issues fixes in future.

Of course, I would assume that each time we are trying to deliver good quality code but we are only humans. So even when we do not have enough budget for refactoring, I would like to advise to start monitoring the quality of code. Then we will be able to check present status of code quality and observe the general trend. It means that we will know where we are in our project. Read more

NDepend – short review

Sometime ago I have been asked by Patrick Smacchia to write short review of his tool – NDepend. I believe that most of you know this tool. It is a swiss army knife in scope of code analysis. Capacity of this tool is enormous. I wanted to fulfil this request in a professional way. So, I needed to learn how to use this tool before writing any word regarding it. And it was not so easy task. This tool has so many features and possibilities of customisation… After two months of using it I can say that still I am not so advanced user of it.

I will try to do my best… Read more

FluentValidation.Validators.UnitTestExtension version 1.1

I just managed to publish new version of packgage FluentValidation.Validators.UnitTestExtension. This package allows you to write unit tests for Fluent Validators in more effective way.

With version 1.1 following changes have been introduced:

  • support for new version of FluentValidation 7.*
  • new verifiers that check configuration of ScalePrecisionValidator and RegularExpressionValidator.

More information about project is available on GitHub.

Lightning talk – Autofixture

I would like to encourage you to download and go through presentation from lighting talk about AutoFixture library. Main purpose of this library is to minimize the ‘Arrange’ phase of unit tests in order to maximize maintainability. Presentation is available on GitHub – AutoFixture – Lightning talk. You will find there description of main features of this library. Moreover, presentation contains short comparison AutoFixture with other available solutions. Of course on GitHub you will find code used in presentation.

PDF Combiner 1.7

In the newest version of PDF Combiner I introduced the following changes:

– changed way of files combining
– improved behavior of keys: Move up and Move down
– fixed layout issues when application is working on Windows with not standard DPI settings
– added protection for accidentally overwriting source files.

The newest version of application can be downloaded from application page.

StyleCop SA0120 error with Visual Studio 2015

It is quite common that you will find some issues during updating development environment to a newer version – in this case to Visual Studio 2015. In projects that use StyleCop for code analysis you can get SA0120 CSharp.CsParser error.

It seems that it is internal StyleCop error. You are not able to find information about SA0102 error in StyleCop warning messages’ documentation. It is good that this error will not occur after opening project in Visual Studio 2015. It will occur after your will use some features introduced in C# 6.0. I think that most of us should be aware of this situation. You should remember that StyleCop has not been updated since April 2014 (last version is StyleCop 4.7.49.0).

SA0120
SA0120 Error

You have three options to solve this issue:

Read more

PDF Combiner 1.6

In the newest version of PDF Combiner I introduced following changes:

– added support for PDF documents that have been created according to the newest PDF document standard
– added possibility to merge documents which opening is protected with password
– added possibility to copy more detailed error information to Windows clipboard.

The newest version of application can be downloaded from application page.