Skip to content

Commit fb21d14

Browse files
committed
Merged DerivedComSafeTests into the same file as the abstract base test class.
1 parent fcfbf44 commit fb21d14

File tree

3 files changed

+19
-25
lines changed

3 files changed

+19
-25
lines changed

RubberduckTests/RubberduckTests.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<Compile Include="VBEditor\ComSafeManagerTests.cs" />
112112
<Compile Include="VBEditor\ProjectsRepositoryTests.cs" />
113113
<Compile Include="VBEditor\ReferenceEqualityComparerTests.cs" />
114-
<Compile Include="VBEditor\ComSafeTestBase.cs" />
114+
<Compile Include="VBEditor\ComSafeTests.cs" />
115115
<Compile Include="Commands\ExportAllCommandTests.cs" />
116116
<Compile Include="Commands\RefactorCommandTests.cs" />
117117
<Compile Include="Commands\IndentCommandTests.cs" />
@@ -312,7 +312,6 @@
312312
<Compile Include="UnitTesting\EngineTests.cs" />
313313
<Compile Include="UnitTesting\DiscoveryTests.cs" />
314314
<Compile Include="UnitTesting\ViewModelTests.cs" />
315-
<Compile Include="VBEditor\DerivedComSafeTests.cs" />
316315
</ItemGroup>
317316
<ItemGroup>
318317
<None Include="app.config" />

RubberduckTests/VBEditor/ComSafeTestBase.cs renamed to RubberduckTests/VBEditor/ComSafeTests.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,5 +187,23 @@ public void AfterDisposalTryRemoveReturnsFalseForAddedItem()
187187

188188
Assert.IsFalse(result);
189189
}
190+
191+
[TestFixture()]
192+
public class StrongComSafeTests : ComSafeTestBase
193+
{
194+
protected override IComSafe TestComSafe()
195+
{
196+
return new StrongComSafe();
197+
}
198+
}
199+
200+
[TestFixture()]
201+
public class WeakComSafeTests : ComSafeTestBase
202+
{
203+
protected override IComSafe TestComSafe()
204+
{
205+
return new WeakComSafe();
206+
}
207+
}
190208
}
191209
}

RubberduckTests/VBEditor/DerivedComSafeTests.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)