1
0
mirror of https://bitbucket.org/cjdskunkworks/lynxastrodewcontroller.git synced 2026-05-03 17:28:52 +00:00

Added missing build.build file and fixed a couple of broken unit tests.

This commit is contained in:
2021-02-17 20:45:17 +00:00
parent 7fe6d52363
commit 57b99ce84e
4 changed files with 73 additions and 25 deletions
@@ -1,4 +1,5 @@
using ASCOM.LynxAstro.DewController;
using System.Collections.Generic;
using ASCOM.LynxAstro.DewController;
using Moq;
using NUnit.Framework;
@@ -10,12 +11,22 @@ namespace LynxAstro.DewController.Switch.UnitTests
private ASCOM.LynxAstro.DewController.Switch _switch;
private Mock<ISharedResourcesWrapper> _sharedResourcesWrapperMock;
private ProfileProperties _profileProperties;
[SetUp]
public void Setup()
{
_sharedResourcesWrapperMock = new Mock<ISharedResourcesWrapper>();
_profileProperties = new ProfileProperties()
{
ComPort = "TestCom1",
SwitchNames = new List<string>(),
TraceLogger = false
};
_switch = new ASCOM.LynxAstro.DewController.Switch();
_sharedResourcesWrapperMock = new Mock<ISharedResourcesWrapper>();
_sharedResourcesWrapperMock.Setup(x => x.ReadProfile()).Returns(() => _profileProperties);
_switch = new ASCOM.LynxAstro.DewController.Switch(_sharedResourcesWrapperMock.Object);
}
[Test]