Пример #1
0
        public void GetCondition_MissingCondition_ReturnsUnknown()
        {
            var status = new MobileDeviceStatus()
            {
                Conditions = new List <MobileDeviceCondition>()
            };

            Assert.Equal(ConditionStatus.Unknown, status.GetConditionStatus(MobileDeviceConditions.DeveloperDiskMounted));
        }
Пример #2
0
        public void GetCondition_HasCondition_ReturnsConditionValue()
        {
            var status = new MobileDeviceStatus()
            {
                Conditions = new List <MobileDeviceCondition>()
                {
                    new MobileDeviceCondition()
                    {
                        Type   = MobileDeviceConditions.DeveloperDiskMounted,
                        Status = ConditionStatus.True,
                    },
                },
            };

            Assert.Equal(ConditionStatus.True, status.GetConditionStatus(MobileDeviceConditions.DeveloperDiskMounted));
        }
Пример #3
0
        public void GetCondition_ConditionsNull_ReturnsUnknown()
        {
            var status = new MobileDeviceStatus();

            Assert.Equal(ConditionStatus.Unknown, status.GetConditionStatus(MobileDeviceConditions.DeveloperDiskMounted));
        }