Exemplo n.º 1
0
        public void WebSourceDisposeExpectedDisposesAndNullsClient()
        {
            var source = new WebSource {
                Client = new WebClient()
            };

            Assert.IsNotNull(source.Client);
            source.Dispose();
            Assert.IsNull(source.Client);
        }
Exemplo n.º 2
0
        public void WebSource_Dispose_Expected_Disposes_And_Nulls_Client()
        {
            var source = new WebSource {
                Client = new WebClientWrapper()
            };

            Assert.IsNotNull(source.Client);
            source.Dispose();
            Assert.IsNull(source.Client);
        }