ntwain/Tests/NTwain.Tests/DeviceEventArgsTests.cs

22 lines
517 B
C#
Raw Normal View History

2014-04-21 04:57:38 +08:00
using Microsoft.VisualStudio.TestTools.UnitTesting;
2014-04-03 07:01:21 +08:00
using NTwain.Data;
namespace NTwain.Tests
{
[TestClass]
public class DeviceEventArgsTests
{
[TestMethod]
public void Constructor_Sets_Correct_Properties()
{
// just some non-default values to test
TWDeviceEvent evt = new TWDeviceEvent();
DeviceEventArgs target = new DeviceEventArgs(evt);
Assert.AreEqual(evt, target.DeviceEvent, "DeviceEvent mismatch.");
}
}
}