Files
libremetaverse/LibreMetaverse.RLV.Tests/Restrictions/ShowNamesRestrictionTests.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

19 lines
545 B
C#

namespace LibreMetaverse.RLV.Tests.Restrictions
{
public class ShowNamesRestrictionTests : RestrictionsBase
{
#region @shownames=<y/n>
[Fact]
public async Task CanShowNames()
{
var userId1 = new Guid("aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa");
await _rlv.ProcessMessage("@shownames=n", _sender.Id, _sender.Name);
Assert.False(_rlv.Permissions.CanShowNames(null));
Assert.False(_rlv.Permissions.CanShowNames(userId1));
}
#endregion
}
}