public void WebSourceDisposeExpectedDisposesAndNullsClient() { var source = new WebSource { Client = new WebClient() }; Assert.IsNotNull(source.Client); source.Dispose(); Assert.IsNull(source.Client); }
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); }