Refactor: Rename lookup dictionaries to thesaurus.
This prevents confusion with the .NET term 'dictionary'.
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
*/
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
using zaaReloaded2.Dictionaries;
|
||||
using zaaReloaded2.Thesaurus;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
|
@ -66,7 +66,7 @@
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Compile Include="Dictionaries\DictionaryTest.cs" />
|
||||
<Compile Include="Thesaurus\ThesaurusTest.cs" />
|
||||
<Compile Include="Formatter\Elements\ItemsTest.cs" />
|
||||
<Compile Include="Formatter\FormatterTest.cs" />
|
||||
<Compile Include="Importer\ZaaImporter\LaurisItemTest.cs" />
|
||||
@ -74,7 +74,7 @@
|
||||
<Compile Include="Importer\ZaaImporter\ZaaImporterTest.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="LineParserTest.cs" />
|
||||
<Compile Include="Dictionaries\TestDictionary.cs" />
|
||||
<Compile Include="Thesaurus\TestThesaurus.cs" />
|
||||
<Compile Include="Importer\ZaaImporter\TimePointTest.cs" />
|
||||
<Compile Include="TestHelpers.cs" />
|
||||
</ItemGroup>
|
||||
@ -90,7 +90,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Dictionaries\test_dictionary.txt" />
|
||||
<EmbeddedResource Include="Thesaurus\test_thesaurus.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="demo-output.txt" />
|
||||
|
@ -22,13 +22,14 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
|
||||
namespace Tests.Dictionaries
|
||||
namespace Tests.Thesaurus
|
||||
{
|
||||
class TestDictionary : zaaReloaded2.Dictionaries.DictionaryBase
|
||||
class TestThesaurus : zaaReloaded2.Thesaurus.ThesaurusBase
|
||||
{
|
||||
protected override System.IO.Stream GetDefaultStream()
|
||||
{
|
||||
return Assembly.GetExecutingAssembly().GetManifestResourceStream("Tests.Dictionaries.test_dictionary.txt");
|
||||
return Assembly.GetExecutingAssembly()
|
||||
.GetManifestResourceStream("Tests.Thesaurus.test_thesaurus.txt");
|
||||
}
|
||||
|
||||
protected override string GetUserFileName()
|
@ -21,15 +21,15 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Tests.Dictionaries
|
||||
namespace Tests.Thesaurus
|
||||
{
|
||||
[TestFixture]
|
||||
class DictionaryTest
|
||||
class ThesaurusTest
|
||||
{
|
||||
[Test]
|
||||
public void DictionaryFromContentStream()
|
||||
{
|
||||
TestDictionary td = new TestDictionary();
|
||||
TestThesaurus td = new TestThesaurus();
|
||||
Assert.IsTrue(td.Records.ContainsKey("Field 1"));
|
||||
Assert.AreEqual("Field 2", td.Records["Field 1"][1]);
|
||||
}
|
Reference in New Issue
Block a user