public void TestConvertNullToIsoTemplate() { SimTemplateException m_Exception = null; try { byte[] template = IsoTemplateHelper.ToIsoTemplate(null); } catch (SimTemplateException ex) { m_Exception = ex; } Assert.IsNotNull(m_Exception); }
/// <summary> /// Called when an error occurred, to report it and transition to error state. /// </summary> /// <param name="ex">The exception.</param> protected void OnErrorOccurred(SimTemplateException ex) { Outer.m_Exception = ex; Log.ErrorFormat("Error occurred: " + ex.Message, ex); TransitionTo(typeof(Error)); }