Sic.Framework-Nanjing-Baishi/UnitTest/MECF.Framework.Common.Test/Aitex/Core/RT/IOCore/Interlock/InterlockManagerTests.cs

30 lines
1.1 KiB
C#
Raw Normal View History

using Xunit;
using Aitex.Core.RT.SCCore;
using MECF.Framework.Common.IOCore;
using MECF.Framework.Common.SCCore;
using MECF.Framework.RT.Core.IoProviders;
using Moq;
namespace Aitex.Core.RT.IOCore.Tests
{
public class InterlockManagerTests
{
private const string FN_IO_PROVIDER = "SupportFiles\\IoProviderConfig.xml";
private const string FN_IO_TABLE = "SupportFiles\\_ioDefinePM1.xml";
private const string FN_DEVICE_MODEL = "SupportFiles\\DeviceModelPM1.xml";
private const string FN_INTERLOCK = "SupportFiles\\interlockPM1.xml";
private const string FN_DAEMON = "SupportFiles\\interlockDaemonPM1.xml";
[Fact()]
public void InitializeTest()
{
var mock = new Mock<ISCManager>();
mock.Setup(x => x.GetConfigItem(It.IsAny<string>())).Returns(new SCConfigItem());
SC.Manager = mock.Object;
IoProviderManager.Instance.Initialize(FN_IO_PROVIDER);
IoManager.Instance.Initialize(FN_INTERLOCK, FN_DAEMON);
Assert.True(false, "This test needs an implementation");
}
}
}