Split Geekbot.net into src/Bot, src/Core, and src/Web
This commit is contained in:
parent
7b6dd2d2f9
commit
fc0af492ad
197 changed files with 542 additions and 498 deletions
|
@ -1,7 +1,7 @@
|
|||
using Geekbot.net.Lib.Converters;
|
||||
using Geekbot.Core.Converters;
|
||||
using Xunit;
|
||||
|
||||
namespace Tests.Lib.Converters
|
||||
namespace Tests.Core.Converters
|
||||
{
|
||||
public class EmojiConverterTest
|
||||
{
|
|
@ -1,11 +1,10 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text.Json;
|
||||
using Geekbot.net.Lib.DiceParser;
|
||||
using Geekbot.net.Lib.RandomNumberGenerator;
|
||||
using Geekbot.Core.DiceParser;
|
||||
using Geekbot.Core.RandomNumberGenerator;
|
||||
using Xunit;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace Tests.Lib.DiceParser
|
||||
namespace Tests.Core.DiceParser
|
||||
{
|
||||
public class DiceParserTest
|
||||
{
|
||||
|
@ -200,7 +199,7 @@ namespace Tests.Lib.DiceParser
|
|||
[Theory, MemberData(nameof(DiceParserTestData))]
|
||||
public void DiceParserTestFunc(string testName, DiceParserTestDto testData)
|
||||
{
|
||||
var parser = new Geekbot.net.Lib.DiceParser.DiceParser(_randomNumberGenerator);
|
||||
var parser = new Geekbot.Core.DiceParser.DiceParser(_randomNumberGenerator);
|
||||
var result = parser.Parse(testData.Input);
|
||||
|
||||
Assert.Equal(JsonSerializer.Serialize(result), JsonSerializer.Serialize(testData.Expected));
|
|
@ -1,8 +1,8 @@
|
|||
using Geekbot.net.Lib.DiceParser;
|
||||
using Geekbot.net.Lib.RandomNumberGenerator;
|
||||
using Geekbot.Core.DiceParser;
|
||||
using Geekbot.Core.RandomNumberGenerator;
|
||||
using Xunit;
|
||||
|
||||
namespace Tests.Lib.DiceParser
|
||||
namespace Tests.Core.DiceParser
|
||||
{
|
||||
public class SingleDieTest
|
||||
{
|
|
@ -1,8 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Geekbot.net.Lib.Levels;
|
||||
using Geekbot.Core.Levels;
|
||||
using Xunit;
|
||||
|
||||
namespace Tests.Lib.Levels
|
||||
namespace Tests.Core.Levels
|
||||
{
|
||||
public class LevelCalcTest
|
||||
{
|
|
@ -1,10 +1,10 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Geekbot.net.Lib.Localization;
|
||||
using Geekbot.Core.Localization;
|
||||
using Moq;
|
||||
using Xunit;
|
||||
|
||||
namespace Tests.Lib.Localization
|
||||
namespace Tests.Core.Localization
|
||||
{
|
||||
public class TranslationGuildContext_test
|
||||
{
|
|
@ -6,7 +6,7 @@ using Xunit;
|
|||
using YamlDotNet.Core;
|
||||
using YamlDotNet.Serialization;
|
||||
|
||||
namespace Tests.Lib.Localization
|
||||
namespace Tests.Core.Localization
|
||||
{
|
||||
public class Translations_test
|
||||
{
|
||||
|
@ -14,7 +14,7 @@ namespace Tests.Lib.Localization
|
|||
public void TranslationsYamlIsValid()
|
||||
{
|
||||
// Read the file
|
||||
var translationFile = File.ReadAllText(Path.GetFullPath("./../../../../Geekbot.net/Lib/Localization/Translations.yml"));
|
||||
var translationFile = File.ReadAllText(Path.GetFullPath("./../../../../src/Core/Localization/Translations.yml"));
|
||||
|
||||
// Deserialize
|
||||
var input = new StringReader(translationFile);
|
|
@ -15,6 +15,6 @@
|
|||
<PackageReference Include="YamlDotNet" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Geekbot.net\Geekbot.net.csproj" />
|
||||
<ProjectReference Include="..\src\Bot\Bot.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue