You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
612 B
29 lines
612 B
using System.Text; |
|
using ArducopterConfigurator.PresentationModels; |
|
using NUnit.Framework; |
|
|
|
namespace ArducopterConfiguratorTest |
|
{ |
|
[TestFixture] |
|
public class MainVmTests |
|
{ |
|
private MockComms _mockComms; |
|
private MainVm _vm; |
|
|
|
[SetUp] |
|
public void Setup() |
|
{ |
|
_mockComms = new MockComms(); |
|
_vm = new MainVm(_mockComms); |
|
} |
|
|
|
[Test] |
|
public void StateInitiallyDisconnected() |
|
{ |
|
Assert.AreEqual(MainVm.SessionStates.Disconnected, _vm.ConnectionState); |
|
} |
|
|
|
|
|
} |
|
} |
|
|
|
|