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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user