Ejemplo n.º 1
0
        public void SymbolRemoved()
        {
            DefineSymbolsHelper.Add(A);
            DefineSymbolsHelper.Remove(A);

            Expect(GetSymbols(), !Contains(A));
        }
Ejemplo n.º 2
0
        public void SymbolsAddedAndSingleRemoved()
        {
            DefineSymbolsHelper.Add(A);
            DefineSymbolsHelper.Add(B);
            DefineSymbolsHelper.Remove(A);

            Expect(GetSymbols(), !Contains(A));
            Expect(GetSymbols(), Contains(B));
        }
        static void Update()
        {
            bool refresh = false;

            var value = AreIosPushNotificationsRemoved();

            if (iosPushNotificationsRemoved != value)
            {
                iosPushNotificationsRemoved = value;
                refresh = true;
            }

            if (refresh)
            {
                if (iosPushNotificationsRemoved)
                {
                    DefineSymbolsHelper.Add(DefineSymbolsHelper.IOS_PUSH_NOTIFICATIONS_REMOVED);
                }
                else
                {
                    DefineSymbolsHelper.Remove(DefineSymbolsHelper.IOS_PUSH_NOTIFICATIONS_REMOVED);
                }
            }
        }