2011-02-04 17:45:31 -04:00
|
|
|
|
using System.Text;
|
2010-12-20 18:14:39 -04:00
|
|
|
|
using ArducopterConfigurator.PresentationModels;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
|
|
namespace ArducopterConfiguratorTest
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class MainVmTests
|
|
|
|
|
{
|
2010-12-23 11:59:00 -04:00
|
|
|
|
private MockComms _mockComms;
|
2010-12-20 18:14:39 -04:00
|
|
|
|
private MainVm _vm;
|
|
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
|
public void Setup()
|
|
|
|
|
{
|
2010-12-23 11:59:00 -04:00
|
|
|
|
_mockComms = new MockComms();
|
|
|
|
|
_vm = new MainVm(_mockComms);
|
2010-12-20 18:14:39 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void StateInitiallyDisconnected()
|
|
|
|
|
{
|
2010-12-22 02:42:16 -04:00
|
|
|
|
Assert.AreEqual(MainVm.SessionStates.Disconnected, _vm.ConnectionState);
|
2010-12-20 18:14:39 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2010-12-22 02:42:16 -04:00
|
|
|
|
|