Created
October 12, 2016 12:17
-
-
Save gashupl/ee0ab92f173deda972f0ba073a11c24c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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