using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace unit_tests
{
[TestClass]
public class mates_test_06
{
[TestMethod]
public void TestMethod()
{
using (Mates mates = new Mates("mates_REMOTE.mon", 1))
{
try
{
Dio3Node node = mates.NewDio3Node(
NodeId.mates_dio3_mk1_1);
foreach (var val in new bool[]{false, true, false})
{
node.SetDout(0, val);
node.Assert.InputEquals(0, val);
}
}
catch
{
Console.Write("Cannot discover node.\n");
}
}
}
}
}