mirror of
https://github.com/soukoku/ntwain.git
synced 2025-10-26 20:19:03 +08:00
Updated string read and fixed sample.
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
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.");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -54,9 +54,6 @@
|
||||
</CodeAnalysisDependentAssemblyPaths>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="DataTransferredEventArgsTests.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Data\TWIdentityTest.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
|
||||
Reference in New Issue
Block a user