using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace SomeNamespace | |
{ | |
[TestClass] | |
public class BaseTest | |
{ | |
public TestContext TestContext { get; set; } | |
[TestInitialize] | |
public void BaseTestInitialize() | |
{ | |
} | |
[TestCleanup] | |
public void BaseTestCleanup() | |
{ | |
if (this.TestContext.CurrentTestOutcome == UnitTestOutcome.Failed) | |
{ | |
// Do something | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment