Ejemplo n.º 1
0
 public void ShouldWorkOnProperty()
 {
     //just a syntax test here to make sure properties can be passed to Execute()
     InternalExecutableTester.OutputValue = "";
     var subject = new ActionExcecutor();
     subject.Execute<InternalExecutableTester>(x => x.TestValue);
 }
Ejemplo n.º 2
0
        public void ShouldWorkOnProperty()
        {
            //just a syntax test here to make sure properties can be passed to Execute()
            InternalExecutableTester.OutputValue = "";
            var subject = new ActionExcecutor();

            subject.Execute <InternalExecutableTester>(x => x.TestValue);
        }
Ejemplo n.º 3
0
 public void ShouldApplyValuesAndExecute()
 {
     //verifies that actions are applied
     //the results are moved to a static variable of OutputValue if sucessfull
     InternalExecutableTester.OutputValue = "";
     var subject = new ActionExcecutor();
     var value = "aw4sagh34";
     subject.Execute<InternalExecutableTester>(x=>x.SetTestValue(value));
     Assert.That(InternalExecutableTester.OutputValue, Is.EqualTo(value));
 }
Ejemplo n.º 4
0
        public void ShouldApplyValuesAndExecute()
        {
            //verifies that actions are applied
            //the results are moved to a static variable of OutputValue if sucessfull
            InternalExecutableTester.OutputValue = "";
            var subject = new ActionExcecutor();
            var value   = "aw4sagh34";

            subject.Execute <InternalExecutableTester>(x => x.SetTestValue(value));
            Assert.That(InternalExecutableTester.OutputValue, Is.EqualTo(value));
        }
Ejemplo n.º 5
0
 public void ShouldApplyValuesToItemWithConstructorAndExecute()
 {
     //verifies that actions are applied
     //the results are moved to a static variable of OutputValue if sucessfull
     InternalExecutableTester.OutputValue = "";
     var subject = new ActionExcecutor();
     var value = "aw4sagh34";
     string constructorParms = "test";
     subject.Execute<InternalExecutableTester, string>(x => x.SetTestValue(value), constructorParms);
     Assert.That(InternalExecutableTester.OutputValue, Is.EqualTo(value));
     Assert.That(InternalExecutableTester.ConstructorValue, Is.EqualTo(constructorParms));
 }
Ejemplo n.º 6
0
        public void ShouldApplyValuesToItemWithConstructorAndExecute()
        {
            //verifies that actions are applied
            //the results are moved to a static variable of OutputValue if sucessfull
            InternalExecutableTester.OutputValue = "";
            var    subject          = new ActionExcecutor();
            var    value            = "aw4sagh34";
            string constructorParms = "test";

            subject.Execute <InternalExecutableTester, string>(x => x.SetTestValue(value), constructorParms);
            Assert.That(InternalExecutableTester.OutputValue, Is.EqualTo(value));
            Assert.That(InternalExecutableTester.ConstructorValue, Is.EqualTo(constructorParms));
        }