This library provides RLV command processing and ease of use for checking current RLV permissions and restrictions
18 lines
609 B
C#
18 lines
609 B
C#
namespace LibreMetaverse.RLV.Tests.Exceptions
|
|
{
|
|
public class DenyPermissionExceptionTests : RestrictionsBase
|
|
{
|
|
#region @denypermission=<rem/add>
|
|
[Fact]
|
|
public async Task DenyPermission()
|
|
{
|
|
Assert.True(await _rlv.ProcessMessage($"@denypermission=add", _sender.Id, _sender.Name));
|
|
Assert.True(_rlv.Permissions.IsAutoDenyPermissions());
|
|
|
|
Assert.True(await _rlv.ProcessMessage($"@denypermission=rem", _sender.Id, _sender.Name));
|
|
Assert.False(_rlv.Permissions.IsAutoDenyPermissions());
|
|
}
|
|
#endregion
|
|
}
|
|
}
|