-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #398 from tonyhallett/fix-colour-settings-not-refl…
…ectedi-in-the-left-hand-margin Much improved Editor colouring
- Loading branch information
Showing
352 changed files
with
13,774 additions
and
1,749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ x64/ | |
*.ncrunchproject | ||
_NCrunch_WebCompiler | ||
/MSBuild_Logs | ||
/MigrationBackup/f1627d49/FineCodeCoverageTests |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using NUnit.Framework; | ||
using System.IO; | ||
using FineCodeCoverage.Engine.Cobertura; | ||
using System; | ||
using System.Linq; | ||
|
||
namespace FineCodeCoverageTests | ||
{ | ||
public class CoberturaDeserializer_Tests | ||
{ | ||
[Test] | ||
public void Should_Deserialize_What_Is_Required() | ||
{ | ||
var cobertura = @"<?xml version=""1.0"" encoding=""utf-8""?> | ||
<!DOCTYPE coverage SYSTEM ""http://cobertura.sourceforge.net/xml/coverage-04.dtd""> | ||
<coverage line-rate=""0.127074535991358"" branch-rate=""0.101282051282051"" lines-covered=""1294"" lines-valid=""10183"" branches-covered=""395"" branches-valid=""3900"" complexity=""5304"" version=""1"" timestamp=""1709634604""> | ||
<sources /> | ||
<packages> | ||
<package name=""DemoOpenCover"" line-rate=""0.0271464646464646"" branch-rate=""0.5"" complexity=""537""> | ||
<classes> | ||
<class name="".LargeClass"" filename=""C:\Users\tonyh\source\repos\DemoOpenCover\DemoOpenCover\LargeClass.cs"" line-rate=""1"" branch-rate=""1"" complexity=""501""> | ||
<methods> | ||
<method name=""Method0"" signature=""()"" line-rate=""1"" branch-rate=""1"" complexity=""1""> | ||
<lines> | ||
<line number=""1"" hits=""1"" branch=""false"" /> | ||
</lines> | ||
</method> | ||
</methods> | ||
<lines> | ||
<line number=""1"" hits=""1"" branch=""true"" /> | ||
</lines> | ||
</class> | ||
</classes> | ||
</package> | ||
</packages> | ||
</coverage> | ||
"; | ||
|
||
string fileName = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".xml"; | ||
File.WriteAllText(fileName, cobertura); | ||
var report = new CoberturaDerializer().Deserialize(fileName); | ||
var package = report.Packages.Single(); | ||
Assert.AreEqual("DemoOpenCover", package.Name); | ||
var packageClass = package.Classes.Single(); | ||
Assert.AreEqual(".LargeClass", packageClass.Name); | ||
Assert.AreEqual(@"C:\Users\tonyh\source\repos\DemoOpenCover\DemoOpenCover\LargeClass.cs", packageClass.Filename); | ||
Assert.AreEqual(1, packageClass.LineRate); | ||
Assert.AreEqual(1, packageClass.BranchRate); | ||
Assert.AreEqual(501, packageClass.Complexity); | ||
var method = packageClass.Methods.Single(); | ||
Assert.AreEqual("Method0", method.Name); | ||
Assert.AreEqual("()", method.Signature); | ||
Assert.AreEqual(1, method.LineRate); | ||
Assert.AreEqual(1, method.BranchRate); | ||
var line = method.Lines.Single(); | ||
Assert.AreEqual(1, line.Number); | ||
Assert.AreEqual(1, line.Hits); | ||
line = packageClass.Lines.Single(); | ||
Assert.AreEqual(1, line.Number); | ||
Assert.AreEqual(1, line.Hits); | ||
} | ||
} | ||
} |
Oops, something went wrong.