Files
libremetaverse/LibreMetaverse.RLV.Tests/Exceptions/TpLureExceptionTests.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

23 lines
768 B
C#

namespace LibreMetaverse.RLV.Tests.Exceptions
{
public class TpLureExceptionTests : RestrictionsBase
{
#region @tplure:<UUID>=<rem/add>
[Fact]
public async Task CanTpLure_Except()
{
var userId1 = new Guid("00000000-0000-4000-8000-000000000000");
var userId2 = new Guid("11111111-1111-4111-8111-111111111111");
await _rlv.ProcessMessage("@tplure=n", _sender.Id, _sender.Name);
await _rlv.ProcessMessage($"@tplure:{userId1}=add", _sender.Id, _sender.Name);
Assert.False(_rlv.Permissions.CanTPLure(null));
Assert.True(_rlv.Permissions.CanTPLure(userId1));
Assert.False(_rlv.Permissions.CanTPLure(userId2));
}
#endregion
}
}