Ejemplo n.º 1
0
 public void Should_Report_DuplicateLines_And_Percentage_Simple_Case()
 {
     canvas.AddDuplicate(new Duplicate(1, 10, new Location("fileA.cs"), new Duplicate(1, 10, new Location("fileB.cs"))));
     canvas.LinesOfCode.Should().Be(100);
     canvas.DuplicateLines.Should().Be(1);
     canvas.DuplicatePercentage.Should().Be(0.01d);
 }