2020-09-04 18:00:46 +00:00
|
|
|
|
using Xunit;
|
|
|
|
|
|
2020-09-04 19:25:22 +00:00
|
|
|
|
namespace NoSoliciting.Tests.DefinitionsTests.Global {
|
2020-09-04 18:00:46 +00:00
|
|
|
|
public class FreeCompany : DefinitionTest {
|
|
|
|
|
public FreeCompany(DefinitionsFixture fixture) {
|
2020-09-04 19:25:22 +00:00
|
|
|
|
this.Def = fixture.defs.Global["free_company"];
|
2020-09-04 18:00:46 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static object[][] DataPositives => DefUtils.DataFromMessages(new TestMessage[] {
|
2020-09-04 19:25:22 +00:00
|
|
|
|
// chat
|
2020-09-04 18:00:46 +00:00
|
|
|
|
new TestMessage(ChatType.Shout, "<LUL> is recruiting! Join our community blah blah discord lul"),
|
2020-09-04 19:25:22 +00:00
|
|
|
|
|
|
|
|
|
// party finder
|
|
|
|
|
new TestMessage("FC recruiting new and experienced players. Interested? Join party, send me a /tell or stop by the FC house for more information. "),
|
2020-09-04 18:00:46 +00:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
public static object[][] DataNegatives => DefUtils.DataFromMessages(new TestMessage[] {
|
|
|
|
|
new TestMessage(ChatType.Say, "<LUL> is recruiting! Join our community blah blah discord lul"),
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
[Theory]
|
|
|
|
|
[MemberData(nameof(DataPositives))]
|
|
|
|
|
public void Positives(TestMessage message) => this.Check(message, CheckType.Positive);
|
|
|
|
|
|
|
|
|
|
[Theory]
|
|
|
|
|
[MemberData(nameof(DataNegatives))]
|
|
|
|
|
public void Negatives(TestMessage message) => this.Check(message, CheckType.Negative);
|
|
|
|
|
}
|
|
|
|
|
}
|