Skip to content

Instantly share code, notes, and snippets.

@ChrisMoney
Created July 7, 2016 15:02
Show Gist options
  • Save ChrisMoney/71c45ad3dceea0a832792163efc55ef0 to your computer and use it in GitHub Desktop.
Save ChrisMoney/71c45ad3dceea0a832792163efc55ef0 to your computer and use it in GitHub Desktop.
Unit Test using MS Test
//*************************
// Use Unit Test Generator to click on any method to create a Test Method stub
// *************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CardDispenser;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace CardDispenserTests
{
[TestClass()]
public class MD1000DriverTests : MD1000ADriver
{
byte cm = 0x30;
byte pm = 0x32;
[TestMethod()]
public void ReadResponseTest()
{
MD1000ADriver md1000ADriver = new MD1000ADriver();
Command command = new Command(cm, pm);
object obj = command.ReadResponse();
Assert.IsInstanceOfType(obj, typeof(object));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment