コード例 #1
0
        public void IsRetired_NoFlag_Test()
        {
            PlayerInstance pch = new PlayerInstance(1, "TestChar")
            {
                PlayerData = new PlayerData(1, 1)
            };

            Assert.That(pch.IsRetired(), Is.False);
        }
コード例 #2
0
        public void IsRetired_Test()
        {
            PlayerInstance pch = new PlayerInstance(1, "TestChar")
            {
                PlayerData = new PlayerData(1, 1)
            };

            pch.PlayerData.Flags = pch.PlayerData.Flags.SetBit(PCFlags.Retired);
            Assert.That(pch.IsRetired(), Is.True);
        }
コード例 #3
0
        public void IsRetired_NoData_Test()
        {
            PlayerInstance pch = new PlayerInstance(1, "TestChar");

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