From 7cbf6e54820eabb1f278e1f5687ce76365cc1db6 Mon Sep 17 00:00:00 2001 From: Daniel Palme Date: Tue, 22 Oct 2024 20:11:27 +0200 Subject: [PATCH] Tests --- src/ReportGenerator.Core.Test/Parser/CoberturaParserTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ReportGenerator.Core.Test/Parser/CoberturaParserTest.cs b/src/ReportGenerator.Core.Test/Parser/CoberturaParserTest.cs index 2eef103c..317eab0d 100644 --- a/src/ReportGenerator.Core.Test/Parser/CoberturaParserTest.cs +++ b/src/ReportGenerator.Core.Test/Parser/CoberturaParserTest.cs @@ -158,9 +158,9 @@ public void MethodMetricsTest() [Theory] [InlineData("Test", "Test.AbstractClass", "C:\\temp\\AbstractClass.cs", ".ctor()", 1, 1, 100, 100, 1)] [InlineData("Test", "Test.AbstractClass_SampleImpl1", "C:\\temp\\AbstractClass.cs", "Method1()", 3, 1, 0, 100, 2)] - [InlineData("Test", "Test.PartialClass", "C:\\temp\\PartialClass.cs", "set_SomeProperty(System.Int32)", 4, 2, 66.66, 50, 2.15)] + [InlineData("Test", "Test.PartialClass", "C:\\temp\\PartialClass.cs", "set_SomeProperty(System.Int32)", 4, 2, 66.66, 50, 2)] [InlineData("Test", "Test.Program", "C:\\temp\\Program.cs", "Main(System.String[])", 4, 1, 89.65, 100, 1.00)] - [InlineData("Test", "Test.TestClass", "C:\\temp\\TestClass.cs", "SampleFunction()", 5, 4, 80, 50, 4.13)] + [InlineData("Test", "Test.TestClass", "C:\\temp\\TestClass.cs", "SampleFunction()", 5, 4, 80, 50, 4)] public void MethodMetricsTest_2(string assemblyName, string className, string filePath, string methodName, int expectedMethodMetrics, double expectedComplexity, double expectedLineCoverage, double expectedBranchCoverage, double expectedCrapScore) { var methodMetrics = csharpParserResult