// public Result HandleData(ExternalCommandData commandData, ref string message, ElementSet elements) public void Test_399_HandleData() { ExeWriter.CF_WriterUtils Target = new ExeWriter.CF_WriterUtils(); Autodesk.Revit.UI.ElementSet elements = new Autodesk.Revit.UI.ElementSet(); string message = null; Autodesk.Revit.UI.ExternalCommandData commandData = new Autodesk.Revit.UI.ExternalCommandData(); Autodesk.Revit.UI.Result ARUIResult = Target.HandleData(commandData, ref message, elements); Assert.IsNotNull(Target); }
//public bool partExists(string str_FileName) public void Test_011_partExists() { ExeWriter.Cl_Exewriter Target = new ExeWriter.Cl_Exewriter(); Autodesk.Revit.UI.ExternalCommandData commandData = new Autodesk.Revit.UI.ExternalCommandData(); string message = null; Autodesk.Revit.UI.ElementSet elements = new Autodesk.Revit.UI.ElementSet(); Autodesk.Revit.UI.Result ARUResult = Target.Execute(commandData, ref message, elements); Assert.AreEqual(ARUResult, Autodesk.Revit.UI.Result.Failed); ARUResult = Target.Execute(commandData, ref message, elements); Assert.AreEqual(ARUResult, Autodesk.Revit.UI.Result.Succeeded); }