public void RemoveAzureCertificateTest() { // Setup bool deleted = false; SimpleServiceManagement channel = new SimpleServiceManagement(); channel.DeleteCertificateThunk = ar => { deleted = true; }; // Test RemoveAzureCertificate removeAzureCertificate = new RemoveAzureCertificate(channel) { ShareChannel = true, CommandRuntime = new MockCommandRuntime() }; removeAzureCertificate.ExecuteCommand(); Assert.IsTrue(deleted); }
//[TestMethod] public void RemoveAzureCertificateTest() { // Setup bool deleted = false; SimpleServiceManagement channel = new SimpleServiceManagement(); channel.DeleteCertificateThunk = ar => { deleted = true; }; // Test RemoveAzureCertificate removeAzureCertificate = new RemoveAzureCertificate() { Channel = channel, ShareChannel = true, CommandRuntime = new MockCommandRuntime() }; removeAzureCertificate.ExecuteCommand(); Assert.IsTrue(deleted); }