Added test for recent failure with better error message
This commit is contained in:
@@ -53,6 +53,13 @@ namespace Swarmops.Logic.Support
|
||||
Type logicType = logicTypes[0];
|
||||
|
||||
basicConverterMethod = logicType.GetMethod ("FromBasic", BindingFlags.Static | BindingFlags.Public);
|
||||
|
||||
if (basicConverterMethod == null)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Unable to find a public static method named \"" + logicType.ToString() + ".FromBasic (" +basicType.ToString()+ ")\" in the Swarmops.Logic assembly");
|
||||
}
|
||||
|
||||
_converterLookup[basicType] = basicConverterMethod;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user