public void IsGuest_NoFlag_Test() { PlayerInstance pch = new PlayerInstance(1, "TestChar") { PlayerData = new PlayerData(1, 1) }; Assert.That(pch.IsGuest(), Is.False); }
public void IsGuest_Test() { PlayerInstance pch = new PlayerInstance(1, "TestChar") { PlayerData = new PlayerData(1, 1) }; pch.PlayerData.Flags = pch.PlayerData.Flags.SetBit(PCFlags.Guest); Assert.That(pch.IsGuest(), Is.True); }
public void IsGuest_NoData_Test() { PlayerInstance pch = new PlayerInstance(1, "TestChar"); Assert.That(pch.IsGuest(), Is.False); }