mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Initial move from old twain-in-dotnet.
This commit is contained in:
26
Tests/NTwain.Tests/DataTransferredEventArgsTests.cs
Normal file
26
Tests/NTwain.Tests/DataTransferredEventArgsTests.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using NTwain;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
using NTwain.Values;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace NTwain.Tests
|
||||
{
|
||||
[TestClass]
|
||||
public class DataTransferredEventArgsTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void Constructor_Sets_Correct_Properties()
|
||||
{
|
||||
// just some non-default values to test
|
||||
IntPtr data = new IntPtr(10);
|
||||
string file = "THIS IS A TEST.";
|
||||
|
||||
DataTransferredEventArgs target = new DataTransferredEventArgs(data, file);
|
||||
|
||||
Assert.AreEqual(data, target.Data, "Data mismatch.");
|
||||
Assert.AreEqual(file, target.FilePath, "File mismatch.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user