Created
April 27, 2014 06:26
-
-
Save TvL2386/11338885 to your computer and use it in GitHub Desktop.
My First C Sharp Unit Testing
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 MyNamespace; | |
namespace MyNamespaceTests | |
{ | |
[TestClass] | |
public class EncryptionTests | |
{ | |
[TestMethod] | |
public void Encrypt() | |
{ | |
MyNamespace.Encryption encryption = new MyNamespace.Encryption("hello","passkey"); | |
Assert.AreEqual("this should fail", encryption.Encrypt()); | |
} | |
[TestMethod] | |
public void PleaseFail() | |
{ | |
Assert.AreEqual("no", "yes"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment