Skip to content

Instantly share code, notes, and snippets.

@arex1337
Last active December 19, 2015 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arex1337/5939394 to your computer and use it in GitHub Desktop.
Save arex1337/5939394 to your computer and use it in GitHub Desktop.
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