Exceptions are expected when a special string is supplied by the fixture, such as "exception". If the cell is blank and an exception is thrown, "error" is reported. The exception is reported if something else was expected.

Specify
CalculateFixtureUnderTest2
exception method
error
no error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Expected exception at fit.Test.Acceptance.CalculateFixtureUnderTest2.exceptionMethod() --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at fitSharp.Machine.Engine.MethodMember.Invoke(Object[] parameters) at fitSharp.Machine.Engine.DefaultRuntime`2.Invoke(TypedValue instance, String memberName, Tree`1 parameters) at fitSharp.Machine.Engine.ProcessorBase`2.<>c__DisplayClass16.b__15(RuntimeOperator`1 o) at fitSharp.Machine.Engine.Operators`2.Do[O](CanDoOperation`1 canDoOperation, DoOperation`1 doOperation) at fitSharp.Machine.Engine.ProcessorBase`2.Invoke(TypedValue instance, String memberName, Tree`1 parameters) at fitSharp.Machine.Engine.ProcessorExtension.InvokeWithThrow[T](Processor`1 processor, TypedValue instance, String memberName, Tree`1 parameters) at fitSharp.Fit.Operators.CellOperator.GetTypedActual(ExecuteContext context, ExecuteParameters parameters) at fit.Operators.ExecuteParse.CanExecute(ExecuteContext context, ExecuteParameters parameters) at fitSharp.Fit.Operators.ExecuteBase.CanExecute(TypedValue instance, Tree`1 parameters) at fitSharp.Machine.Engine.ProcessorBase`2.<>c__DisplayClassa.b__8(ExecuteOperator`1 o) at fitSharp.Machine.Engine.Operators`2.Do[O](CanDoOperation`1 canDoOperation, DoOperation`1 doOperation) at fitSharp.Machine.Engine.ProcessorBase`2.Execute(TypedValue instance, Tree`1 parameters) at fitSharp.Fit.Service.CellOperationImpl.Check(Object systemUnderTest, Tree`1 memberName, Tree`1 parameters, Tree`1 expectedCell) at fitlibrary.CalculateFixture.DoRow(Parse theRow)
CalculateFixtureUnderTest2
exception method
error
no error


[Front Page] [Recent Changes]