Skip to content

Instantly share code, notes, and snippets.

@gashupl
Created October 12, 2016 12:17
Show Gist options
  • Save gashupl/ee0ab92f173deda972f0ba073a11c24c to your computer and use it in GitHub Desktop.
Save gashupl/ee0ab92f173deda972f0ba073a11c24c to your computer and use it in GitHub Desktop.
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using XrmLabs.Library;
namespace XtmLabs.Tests
{
[TestClass]
public class WorkerTests
{
[TestMethod]
[ExpectedException(typeof(Exception))]
public void TestDoSecretJob_ThrowsException()
{
Worker worker = new Worker();
PrivateObject obj = new PrivateObject(worker);
obj.Invoke("DoSecretJob");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment