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:
nooperation
2025-08-17 19:55:33 -04:00
parent f8e173b761
commit d905210ecf
187 changed files with 20833 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using Moq;
namespace LibreMetaverse.RLV.Tests.Queries
{
public class GetDebugQueryTests : RestrictionsBase
{
#region @getdebug_<setting>=<channel_number>
[Theory]
[InlineData("RenderResolutionDivisor", "RenderResolutionDivisor Success")]
[InlineData("Unknown Setting", "Unknown Setting Success")]
public async Task GetDebug_Default(string settingName, string settingValue)
{
var actual = _actionCallbacks.RecordReplies();
_queryCallbacks.Setup(e =>
e.TryGetDebugSettingValueAsync(settingName.ToLower(), default)
).ReturnsAsync((true, settingValue));
var expected = new List<(int Channel, string Text)>
{
(1234, settingValue),
};
Assert.True(await _rlv.ProcessMessage($"@getdebug_{settingName}=1234", _sender.Id, _sender.Name));
Assert.Equal(expected, actual);
}
#endregion
}
}