Changed Resharper's code analysis rules, StyleCop's rules, fixed all issues in test project.