File tree Expand file tree Collapse file tree 4 files changed +45
-6
lines changed
SG.CodeCoverage.Tests.NetFx Expand file tree Collapse file tree 4 files changed +45
-6
lines changed Original file line number Diff line number Diff line change 4747 <Compile Include =" Coverage\CoverageResultTests.cs" />
4848 <Compile Include =" Properties\AssemblyInfo.cs" />
4949 <Compile Include =" InstrumenterTester.cs" />
50- <Compile Include =" TestInstrumentation.cs" />
50+ <Compile Include =" TestInstrumentation_DynamicPort.cs" />
51+ <Compile Include =" TestInstrumentation_FixedPort.cs" />
52+ <Compile Include =" TestInstrumentationBase.cs" />
5153 </ItemGroup >
5254 <ItemGroup >
5355 <ProjectReference Include =" ..\SampleProjectForTest\SampleProjectForTest.csproj" >
Original file line number Diff line number Diff line change 99
1010namespace SG . CodeCoverage . Tests . NetFx
1111{
12- [ TestClass ]
13- public class TestInstrumentation
12+ public abstract class TestInstrumentationBase
1413 {
1514 InstrumenterTester _tester ;
1615
17- [ TestInitialize ]
18- public void Instrument ( )
16+ public TestInstrumentationBase ( int port )
1917 {
20- _tester = new InstrumenterTester ( ) ;
18+ _tester = new InstrumenterTester ( )
19+ {
20+ PortNumber = port
21+ } ;
2122 _tester . InstrumentSampleProject ( ) ;
2223 }
2324
Original file line number Diff line number Diff line change 1+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2+ using System ;
3+ using System . Collections . Generic ;
4+ using System . Linq ;
5+ using System . Text ;
6+ using System . Threading . Tasks ;
7+
8+ namespace SG . CodeCoverage . Tests . NetFx
9+ {
10+ [ TestClass ]
11+ public class TestInstrumentation_DynamicPort : TestInstrumentationBase
12+ {
13+ public TestInstrumentation_DynamicPort ( )
14+ : base ( 0 )
15+ {
16+ }
17+ }
18+ }
Original file line number Diff line number Diff line change 1+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
2+ using System ;
3+ using System . Collections . Generic ;
4+ using System . Linq ;
5+ using System . Text ;
6+ using System . Threading . Tasks ;
7+
8+ namespace SG . CodeCoverage . Tests . NetFx
9+ {
10+ [ TestClass ]
11+ public class TestInstrumentation_FixedPort : TestInstrumentationBase
12+ {
13+ public TestInstrumentation_FixedPort ( )
14+ : base ( 62383 )
15+ {
16+ }
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments