Files
libremetaverse/LibreMetaverse.RLV.Tests/Restrictions/RecvChatExceptionTests.cs
nooperation d905210ecf 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
2025-08-17 19:55:33 -04:00

16 lines
529 B
C#

namespace LibreMetaverse.RLV.Tests.Restrictions
{
public class RecvChatExceptionTests : RestrictionsBase
{
[Fact]
public async Task CanRecvChat()
{
await _rlv.ProcessMessage("@recvchat=n", _sender.Id, _sender.Name);
var userId = new Guid("aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa");
Assert.False(_rlv.Permissions.CanReceiveChat("Hello world", userId));
Assert.True(_rlv.Permissions.CanReceiveChat("/me says Hello world", userId));
}
}
}