Skip to content

Commit a9bbc42

Browse files
committed
Moved RegexAssistant tests to RubberduckTests and made internals visible to it
1 parent dab7d6b commit a9bbc42

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

Rubberduck.RegexAssistant/Atom.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public interface IAtom : IDescribable
1010
Quantifier Quantifier { get; }
1111
string Specifier { get; }
1212
}
13-
13+
1414
internal class CharacterClass : IAtom
1515
{
1616
public static readonly string Pattern = @"(?<!\\)\[(?<expression>.*?)(?<!\\)\]";

Rubberduck.RegexAssistant/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
3+
using System.Runtime.CompilerServices;
4+
35

46
// General Information about an assembly is controlled through the following
57
// set of attributes. Change these attribute values to modify the information
@@ -33,3 +35,6 @@
3335
// [assembly: AssemblyVersion("1.0.*")]
3436
[assembly: AssemblyVersion("1.0.0.0")]
3537
[assembly: AssemblyFileVersion("1.0.0.0")]
38+
39+
// Make internals visible to test project
40+
[assembly: InternalsVisibleTo("RubberduckTests")]

Rubberduck.RegexAssistant/Rubberduck.RegexAssistant.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
3939
<HintPath>..\packages\NLog.4.4.12\lib\net45\NLog.dll</HintPath>
4040
</Reference>
41-
<Reference Include="nunit.framework, Version=3.9.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
42-
<HintPath>..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
43-
</Reference>
4441
<Reference Include="System" />
4542
<Reference Include="System.Core" />
4643
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
@@ -66,10 +63,6 @@
6663
<Compile Include="Properties\AssemblyInfo.cs" />
6764
<Compile Include="Quantifier.cs" />
6865
<Compile Include="QuantifierExtensions.cs" />
69-
<Compile Include="Tests\CharacterClassTests.cs" />
70-
<Compile Include="Tests\LiteralTests.cs" />
71-
<Compile Include="Tests\QuantifierTests.cs" />
72-
<Compile Include="Tests\RegularExpressionTests.cs" />
7366
</ItemGroup>
7467
<ItemGroup>
7568
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />

Rubberduck.RegexAssistant/packages.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
<packages>
33
<package id="NLog" version="4.4.12" targetFramework="net45" />
44
<package id="NLog.Schema" version="4.4.12" targetFramework="net45" />
5-
<package id="NUnit" version="3.9.0" targetFramework="net45" />
65
<package id="System.ValueTuple" version="4.4.0" targetFramework="net45" />
76
</packages>

RubberduckTests/RubberduckTests.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@
288288
<Compile Include="SourceControl\UnsyncedCommitsViewModelTests.cs" />
289289
<Compile Include="StringExtensionsTests.cs" />
290290
<Compile Include="Properties\AssemblyInfo.cs" />
291+
<Compile Include="RegexAssistant\CharacterClassTests.cs" />
292+
<Compile Include="RegexAssistant\LiteralTests.cs" />
293+
<Compile Include="RegexAssistant\QuantifierTests.cs" />
294+
<Compile Include="RegexAssistant\RegularExpressionTests.cs" />
291295
<Compile Include="TodoExplorer\TodoExplorerTests.cs" />
292296
<Compile Include="UnitTesting\AssertTests.cs" />
293297
<Compile Include="UnitTesting\EngineTests.cs" />
@@ -317,6 +321,10 @@
317321
<Project>{a4a618e1-cbca-435f-9c6c-5181e030adfc}</Project>
318322
<Name>Rubberduck.Parsing</Name>
319323
</ProjectReference>
324+
<ProjectReference Include="..\Rubberduck.RegexAssistant\Rubberduck.RegexAssistant.csproj">
325+
<Project>{40cc03e3-756c-4674-af07-384115deaee2}</Project>
326+
<Name>Rubberduck.RegexAssistant</Name>
327+
</ProjectReference>
320328
<ProjectReference Include="..\Rubberduck.SettingsProvider\Rubberduck.SettingsProvider.csproj">
321329
<Project>{e85e1253-86d6-45ee-968b-f37348d44132}</Project>
322330
<Name>Rubberduck.SettingsProvider</Name>

0 commit comments

Comments
 (0)