public void TestSequenceId() { ISequenceCommand command = new SequenceCommandWithExecute(); command.sequenceId = 42; Assert.AreEqual(42, command.sequenceId); }
public void TestCancel() { ISequenceCommand command = new SequenceCommandWithExecute(); command.Cancel(); Assert.IsTrue(command.cancelled); }
public void TestRetainRelease () { ISequenceCommand command = new SequenceCommandWithExecute (); Assert.IsFalse (command.retain); command.Retain (); Assert.IsTrue (command.retain); command.Release (); Assert.IsFalse (command.retain); }
public void TestSuccessfulExecute () { ISequenceCommand command = new SequenceCommandWithExecute (); TestDelegate testDelegate = delegate() { command.Execute(); }; Assert.DoesNotThrow (testDelegate); }
public void TestRetainRelease() { ISequenceCommand command = new SequenceCommandWithExecute(); Assert.IsFalse(command.retain); command.Retain(); Assert.IsTrue(command.retain); command.Release(); Assert.IsFalse(command.retain); }
public void TestSuccessfulExecute() { ISequenceCommand command = new SequenceCommandWithExecute(); TestDelegate testDelegate = delegate() { command.Execute(); }; Assert.DoesNotThrow(testDelegate); }
public void TestSequenceId() { ISequenceCommand command = new SequenceCommandWithExecute (); command.sequenceId = 42; Assert.AreEqual (42, command.sequenceId); }
public void TestCancel() { ISequenceCommand command = new SequenceCommandWithExecute (); command.Cancel (); Assert.IsTrue (command.cancelled); }