20 lines
487 B
C#
20 lines
487 B
C#
using GlobalIPerlUtility;
|
|
using JetBrains.Annotations;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace NfcC7_DLL.Tests.NfcHanler;
|
|
|
|
[TestClass]
|
|
[TestSubject(typeof(MeterTestHatLink))]
|
|
public class MeterTestHatLinkTest
|
|
{
|
|
|
|
[TestMethod]
|
|
public void Open_Test()
|
|
{
|
|
MeterTestHatLink meterTestHatLink = new MeterTestHatLink("COM5");
|
|
meterTestHatLink.Open();
|
|
Assert.IsTrue(meterTestHatLink.IsConnected);
|
|
meterTestHatLink.Close();
|
|
}
|
|
} |