Example #1
0
        public void IsGuest_NoFlag_Test()
        {
            PlayerInstance pch = new PlayerInstance(1, "TestChar")
            {
                PlayerData = new PlayerData(1, 1)
            };

            Assert.That(pch.IsGuest(), Is.False);
        }
Example #2
0
        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);
        }
Example #3
0
        public void IsGuest_NoData_Test()
        {
            PlayerInstance pch = new PlayerInstance(1, "TestChar");

            Assert.That(pch.IsGuest(), Is.False);
        }