ntwain/Tests/NTwain.Tests/DeviceEventArgsTests.cs
2014-04-20 16:57:38 -04:00

22 lines
517 B
C#

using Microsoft.VisualStudio.TestTools.UnitTesting;
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.");
}
}
}