using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace unit_tests
{
[TestClass]
public class mates_test_05
{
[TestMethod]
public void TestMethod()
{
using (Mates mates = new Mates("mates_REMOTE.mon", 1))
{
try
{
Dio3Node dio = mates.NewDio3Node(
NodeId.mates_dio3_mk1_1);
dio.SetDoutAll(0xCAFE);
Assert.AreEqual(dio.GetDinAll(), 0xCAFE);
}
catch
{
Console.Write("Cannot discover node.\n");
}
}
}
}
}