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 47
47
<Compile Include =" Coverage\CoverageResultTests.cs" />
48
48
<Compile Include =" Properties\AssemblyInfo.cs" />
49
49
<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" />
51
53
</ItemGroup >
52
54
<ItemGroup >
53
55
<ProjectReference Include =" ..\SampleProjectForTest\SampleProjectForTest.csproj" >
Original file line number Diff line number Diff line change 9
9
10
10
namespace SG . CodeCoverage . Tests . NetFx
11
11
{
12
- [ TestClass ]
13
- public class TestInstrumentation
12
+ public abstract class TestInstrumentationBase
14
13
{
15
14
InstrumenterTester _tester ;
16
15
17
- [ TestInitialize ]
18
- public void Instrument ( )
16
+ public TestInstrumentationBase ( int port )
19
17
{
20
- _tester = new InstrumenterTester ( ) ;
18
+ _tester = new InstrumenterTester ( )
19
+ {
20
+ PortNumber = port
21
+ } ;
21
22
_tester . InstrumentSampleProject ( ) ;
22
23
}
23
24
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