Ejemplo n.º 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);
		}
Ejemplo n.º 2
0
		public void TestSuccessfulExecute ()
		{
			ICommand command = new CommandWithExecute ();
			TestDelegate testDelegate = delegate()
			{
				command.Execute();
			};
			Assert.DoesNotThrow (testDelegate);
		}
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        public void TestSuccessfulExecute()
        {
            ICommand     command      = new CommandWithExecute();
            TestDelegate testDelegate = delegate()
            {
                command.Execute();
            };

            Assert.DoesNotThrow(testDelegate);
        }