mirror of
https://github.com/soukoku/ntwain.git
synced 2025-04-24 19:06:07 +08:00
27 lines
708 B
C#
27 lines
708 B
C#
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.");
|
|
}
|
|
|
|
}
|
|
}
|