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.
30 lines
612 B
30 lines
612 B
14 years ago
|
using System.Text;
|
||
14 years ago
|
using ArducopterConfigurator.PresentationModels;
|
||
|
using NUnit.Framework;
|
||
|
|
||
|
namespace ArducopterConfiguratorTest
|
||
|
{
|
||
|
[TestFixture]
|
||
|
public class MainVmTests
|
||
|
{
|
||
14 years ago
|
private MockComms _mockComms;
|
||
14 years ago
|
private MainVm _vm;
|
||
|
|
||
|
[SetUp]
|
||
|
public void Setup()
|
||
|
{
|
||
14 years ago
|
_mockComms = new MockComms();
|
||
|
_vm = new MainVm(_mockComms);
|
||
14 years ago
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void StateInitiallyDisconnected()
|
||
|
{
|
||
14 years ago
|
Assert.AreEqual(MainVm.SessionStates.Disconnected, _vm.ConnectionState);
|
||
14 years ago
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
14 years ago
|
|