Exemple #1
0
		public void TestRetainRelease ()
		{
			ICommand command = new CommandWithExecute ();
			Assert.IsFalse (command.retain);
			command.Retain ();
			Assert.IsTrue (command.retain);
			command.Release ();
			Assert.IsFalse (command.retain);
		}
Exemple #2
0
		public void TestSuccessfulExecute ()
		{
			ICommand command = new CommandWithExecute ();
			TestDelegate testDelegate = delegate()
			{
				command.Execute();
			};
			Assert.DoesNotThrow (testDelegate);
		}
Exemple #3
0
        public void TestRetainRelease()
        {
            ICommand command = new CommandWithExecute();

            Assert.IsFalse(command.retain);
            command.Retain();
            Assert.IsTrue(command.retain);
            command.Release();
            Assert.IsFalse(command.retain);
        }
Exemple #4
0
        public void TestSuccessfulExecute()
        {
            ICommand     command      = new CommandWithExecute();
            TestDelegate testDelegate = delegate()
            {
                command.Execute();
            };

            Assert.DoesNotThrow(testDelegate);
        }