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,16 @@
namespace LibreMetaverse.RLV.Tests.Exceptions
{
public class SendChannelExceptExceptionTests : RestrictionsBase
{
#region @sendchannel_except:<channel>=<y/n>
[Fact]
public async Task CanSendChannelExcept()
{
await _rlv.ProcessMessage("@sendchannel_except:456=add", _sender.Id, _sender.Name);
Assert.True(_rlv.Permissions.CanChat(123, "Hello world"));
Assert.False(_rlv.Permissions.CanChat(456, "Hello world"));
}
#endregion
}
}