Beispiel #1
0
        private void AssertBuildCommandProperties(IBounceCommand command)
        {
            Assert.That(command.PastTense, Is.EqualTo("built"));
            Assert.That(command.PresentTense, Is.EqualTo("building"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("build"));

            bool built = false;
            command.InvokeCommand(() => built = true, () => Assert.Fail("didn't expect this to be invoked"), () => Assert.Fail("didn't expect this to be invoked"));
            Assert.That(built);
        }
Beispiel #2
0
        private void AssertBuildCommandProperties(IBounceCommand command)
        {
            Assert.That(command.PastTense, Is.EqualTo("built"));
            Assert.That(command.PresentTense, Is.EqualTo("building"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("build"));

            bool built = false;

            command.InvokeCommand(() => built = true, () => Assert.Fail("didn't expect this to be invoked"), () => Assert.Fail("didn't expect this to be invoked"));
            Assert.That(built);
        }
Beispiel #3
0
        private void AssertDescribeCommandProperties(IBounceCommand command)
        {
            Assert.That(command.CommandLineCommand, Is.EqualTo("describe"));
            Assert.That(command.PastTense, Is.EqualTo("described"));
            Assert.That(command.PresentTense, Is.EqualTo("describing"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("describe"));

            bool described = false;
            command.InvokeCommand(() => Assert.Fail("didn't expect this to be invoked"), () => Assert.Fail("didn't expect this to be invoked"), () => described = true);
            Assert.That(described);
        }
Beispiel #4
0
        private void AssertCleanCommandProperties(IBounceCommand command)
        {
            Assert.That(command.CommandLineCommand, Is.EqualTo("clean"));
            Assert.That(command.PastTense, Is.EqualTo("cleaned"));
            Assert.That(command.PresentTense, Is.EqualTo("cleaning"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("clean"));

            bool cleaned = false;
            command.InvokeCommand(() => Assert.Fail("didn't expect this to be invoked"), () => cleaned = true, () => Assert.Fail("didn't expect this to be invoked"));
            Assert.That(cleaned);
        }
Beispiel #5
0
        private void AssertDescribeCommandProperties(IBounceCommand command)
        {
            Assert.That(command.CommandLineCommand, Is.EqualTo("describe"));
            Assert.That(command.PastTense, Is.EqualTo("described"));
            Assert.That(command.PresentTense, Is.EqualTo("describing"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("describe"));

            bool described = false;

            command.InvokeCommand(() => Assert.Fail("didn't expect this to be invoked"), () => Assert.Fail("didn't expect this to be invoked"), () => described = true);
            Assert.That(described);
        }
Beispiel #6
0
        private void AssertCleanCommandProperties(IBounceCommand command)
        {
            Assert.That(command.CommandLineCommand, Is.EqualTo("clean"));
            Assert.That(command.PastTense, Is.EqualTo("cleaned"));
            Assert.That(command.PresentTense, Is.EqualTo("cleaning"));
            Assert.That(command.InfinitiveTense, Is.EqualTo("clean"));

            bool cleaned = false;

            command.InvokeCommand(() => Assert.Fail("didn't expect this to be invoked"), () => cleaned = true, () => Assert.Fail("didn't expect this to be invoked"));
            Assert.That(cleaned);
        }
Beispiel #7
0
 public void Invoke(IBounceCommand command, IObsoleteTask task)
 {
     command.InvokeCommand(() => Build(task, command), () => Clean(task, command), () => Describe(task, command));
 }
Beispiel #8
0
 public void Invoke(IBounceCommand command, IObsoleteTask task)
 {
     command.InvokeCommand(() => Build(task, command), () => Clean(task, command), () => Describe(task, command));
 }
Beispiel #9
0
 public virtual void Invoke(IBounceCommand command, IBounce bounce)
 {
     command.InvokeCommand(() => Build(bounce), () => Clean(bounce), () => Describe(bounce));
 }
Beispiel #10
0
 public virtual void Invoke(IBounceCommand command, IBounce bounce)
 {
     command.InvokeCommand(() => Build(bounce), () => Clean(bounce), () => Describe(bounce));
 }