Skip to content

Instantly share code, notes, and snippets.

@TvL2386
Created April 27, 2014 06:26
Show Gist options
  • Save TvL2386/11338885 to your computer and use it in GitHub Desktop.
Save TvL2386/11338885 to your computer and use it in GitHub Desktop.
My First C Sharp Unit Testing
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