mirror of
https://github.com/soukoku/ntwain.git
synced 2025-12-29 02:05:04 +08:00
Initial move from old twain-in-dotnet.
This commit is contained in:
25
Tests/NTwain.Tests/DeviceEventArgsTests.cs
Normal file
25
Tests/NTwain.Tests/DeviceEventArgsTests.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using NTwain;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
using NTwain.Values;
|
||||
using System.Runtime.Serialization;
|
||||
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.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user