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

            Assert.DoesNotThrow(testDelegate);
        }