Ejemplo n.º 1
0
        public void SubscribeNullUriInputTest()
        {
            ArgumentNullException expected = null;
            Uri uri = null;

            try
            {
                FeedEngine.Subscribe(uri);
            }
            catch (ArgumentNullException ex)
            {
                expected = ex;
            }

            Assert.IsNotNull(expected);
        }
Ejemplo n.º 2
0
        public void SubscribeNullReceiverTest()
        {
            ArgumentNullException expected = null;
            TestReceiver          receiver = null;
            Uri uri = new Uri("http://blog.opennetcf.com");

            try
            {
                FeedEngine.Subscribe(uri, receiver);
            }
            catch (ArgumentNullException ex)
            {
                expected = ex;
            }

            Assert.IsNotNull(expected);
        }
Ejemplo n.º 3
0
        public void SubscribeNullUriWithReceiverTest()
        {
            ArgumentNullException expected = null;
            TestReceiver          receiver = new TestReceiver();
            Uri uri = null;

            try
            {
                FeedEngine.Subscribe(uri, receiver);
            }
            catch (ArgumentNullException ex)
            {
                expected = ex;
            }

            Assert.IsNotNull(expected);
        }