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

21 lines
638 B
C#

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