Created
July 7, 2016 15:02
-
-
Save ChrisMoney/71c45ad3dceea0a832792163efc55ef0 to your computer and use it in GitHub Desktop.
Unit Test using MS Test
This file contains hidden or 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
//************************* | |
// 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