unger / stylecop.unittesting Goto Github PK
View Code? Open in Web Editor NEWNUnit helperclass to simplify unit testing of custom StyleCop rules
NUnit helperclass to simplify unit testing of custom StyleCop rules
Hello,
First ever issue posted? I feel honored...
I have discovered that there is a breaking change in StyleCop, apparently others have encountered the same thing in related projects, StyleCop+, for example.
Along these lines, the get_Location() has changed:
Exception occurred: System.MissingMethodException, Method not found: 'StyleCop.CodeLocation StyleCop.CSharp.CodeUnit.get_Location()'. Failed to violate rule ParametersShouldBeMeaningfullyNamed on line 9. at NUnit.Framework.Assert.Fail(String message, Object[] args) at StyleCopNUnit.StyleCopTest.AssertViolated(String ruleName, Int32[] lineNumbers) at StyleCopNUnit.StyleCopNUnitFixture.b__0(KeyValuePair`2 v) in StyleCopNUnitExtensions.cs: line 103 at System.Collections.Generic.List`1.ForEach(Action`1 action) at StyleCopNUnit.StyleCopNUnitFixture.Dispose() in StyleCopNUnitExtensions.cs: line 103 at My.StyleCop.Extensions.Tests.CustomRuleTests.TestMyRule() in CustomRuleTests.cs: line 30
Anyhow, would you mind take a look at this? Ideally, I'd like to use this without having to reinvent much of the wheel. I've found this, combined with a simple disposable StyleCopTestFixture, does pretty well to encapsulate the issue of debugging custom rules.
Thank ye...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.