Initial commit of LibreMetaverse.RLV and LibreMetaverse.RLV.Tests.
This library provides RLV command processing and ease of use for checking current RLV permissions and restrictions
This commit is contained in:
27
LibreMetaverse.RLV.Tests/Queries/VersionNumBlQueryTests.cs
Normal file
27
LibreMetaverse.RLV.Tests/Queries/VersionNumBlQueryTests.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace LibreMetaverse.RLV.Tests.Queries
|
||||
{
|
||||
public class VersionNumBlQueryTests : RestrictionsBase
|
||||
{
|
||||
|
||||
#region @versionnumbl=<channel_number>
|
||||
|
||||
[Theory]
|
||||
[InlineData("", RlvService.RLVVersionNum)]
|
||||
[InlineData("sendim,recvim", RlvService.RLVVersionNum + ",recvim,sendim")]
|
||||
public async Task VersionNumBL(string seed, string expectedResponse)
|
||||
{
|
||||
var actual = _actionCallbacks.RecordReplies();
|
||||
SeedBlacklist(seed);
|
||||
|
||||
await _rlv.ProcessMessage("@versionnumbl=1234", _sender.Id, _sender.Name);
|
||||
|
||||
var expected = new List<(int Channel, string Text)>
|
||||
{
|
||||
(1234, expectedResponse),
|
||||
};
|
||||
|
||||
Assert.Equal(expected, actual);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user