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

20 lines
522 B
C#

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