public void CleanupOperations_ConstructorArg1() { CleanupOperations cu = new CleanupOperations(null, TimeSpan.FromSeconds(30), CancellationToken.None) { Endpoint = this.endpoint, SasToken = this.sasToken }; }
public void CleanupOperation_ConstructorTest() { CleanupOperations cu = new CleanupOperations(this.telemetry, TimeSpan.FromSeconds(30), CancellationToken.None) { Endpoint = this.endpoint, SasToken = this.sasToken }; Assert.IsNotNull(cu._cleanupTimer); Assert.AreEqual(this.telemetry, cu._telemetry); Assert.AreEqual(TimeSpan.FromSeconds(5), cu._timeout); Assert.AreEqual(this.sasToken, cu._sasToken); Assert.AreEqual(TimeSpan.FromDays(7), cu._timeToKeep); Assert.AreEqual(CancellationToken.None, cu._token); cu.Dispose(); }