}//</CallFunction(Object obj_library_code_instance, str_function_name, object[] obj_parameters_array)> //------------------------------------------------------------------- /// <summary> /// Author: Darkstrumn /// Function: GetInclude is an alias to the loading of Includes. Store unboxed object to instance variable and use it with the CallFunction /// function to call the included functions /// </summary> /// <param name="windowHandle"></param> /// <param name="str_include"></param> /// <param name="str_references"></param> /// <returns></returns> public static object GetInclude(IntPtr windowHandle, string str_include, string str_references = "") { str_references = (str_references.Length != 0 ? str_references : Includes.SupportClasses.Constants.str_default_references); string str_code = ScriptEngine.Base64Decode(BFS.ScriptSettings.ReadValue(str_include)); var obj_include = ScriptEngine.CsCodeAssembler(windowHandle, str_include, str_code, str_references); return ((object)obj_include); }//</GetInclude(IntPtr windowHandle, string str_include,string str_references = "")>
public object Base64Decode_Should_Decode_Proper_Test(string inputData) { //ARRANGE var testData = inputData; var encodedData = ScriptEngine.Base64Encode(testData); //ACT var decodedData = ScriptEngine.Base64Decode(encodedData); //ASSERT decodedData.ShouldNotBeEmpty(); decodedData.ShouldNotBe(encodedData); return(decodedData); }