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); }
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); }
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)); }
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)); }
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)); }
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)); }