Skip to content

Instantly share code, notes, and snippets.

@arex1337 arex1337/gist:5939394

Last active Dec 19, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.