示例#1
0
        public static void OnDestroy_Return()
        {
            ReactContext _context = new ReactContext();
            var          netInfo  = new NetInfoModule(new DefaultNetworkInformation(), _context);

            netInfo.OnDestroy();
        }
示例#2
0
        public static void Initialize_Return()
        {
            ReactContext _context = new ReactContext();
            var          netInfo  = new NetInfoModule(new DefaultNetworkInformation(), _context);

            netInfo.Initialize();
        }
示例#3
0
        public static void NetInfoModule_ReturnA()
        {
            ReactContext _context = new ReactContext();
            var          netInfo  = new NetInfoModule(_context);

            Assert.NotNull(netInfo);
        }
示例#4
0
        public static void NetInfoModule_ReturnB()
        {
            ReactContext _context = new ReactContext();
            var          netInfo  = new NetInfoModule(new DefaultNetworkInformation(), _context);

            Assert.NotNull(netInfo);
        }
示例#5
0
        public static void getCurrentConnectivity_Return()
        {
            ReactContext _context = new ReactContext();
            var          netInfo  = new NetInfoModule(new DefaultNetworkInformation(), _context);

            netInfo.getCurrentConnectivity(new Promise(new Callback(), new Callback()));
        }