e77ef69ee8
updated VPN plugin to use WebClient message is sent to client trying to execute commands before they are authenticated fixed rare issue with ToAdmins failing record bullet distance fraction for client kills (_customcallbacks) change client level/permissions through webfront ability to tempban through webfront
30 lines
752 B
C#
30 lines
752 B
C#
using SharedLibraryCore.Objects;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xunit;
|
|
|
|
namespace Tests
|
|
{
|
|
public class ClientTests
|
|
{
|
|
[Fact]
|
|
public void SetAdditionalPropertyShouldSucceed()
|
|
{
|
|
var client = new Player();
|
|
int newProp = 5;
|
|
client.SetAdditionalProperty("NewProp", newProp);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetAdditionalPropertyShouldSucceed()
|
|
{
|
|
var client = new Player();
|
|
int newProp = 5;
|
|
client.SetAdditionalProperty("NewProp", newProp);
|
|
|
|
Assert.True(client.GetAdditionalProperty<int>("NewProp") == 5, "added property does not match retrieved property");
|
|
}
|
|
}
|
|
}
|