public void set_error_metric_set(base_error_metrics metrics) { c_csharp_run_metricsPINVOKE.run_metrics_set_error_metric_set(swigCPtr, base_error_metrics.getCPtr(metrics)); if (c_csharp_run_metricsPINVOKE.SWIGPendingException.Pending) { throw c_csharp_run_metricsPINVOKE.SWIGPendingException.Retrieve(); } }
protected void SetUp() { base_cycle_metric_header header = new base_cycle_metric_header(); expected_metrics.Add(new error_metric(7, 1114, 1, 0.450100899f)); expected_metrics.Add(new error_metric(7, 1114, 2, 0.900201797f)); expected_metrics.Add(new error_metric(7, 1114, 3, 0.465621591f)); int[] tmp = new int[] { 3, 30, 7, 0, 90, 4, 1, 0, -96, 115, -26, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 7, 0, 90, 4, 2, 0, -96, 115, 102, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 7, 0, 90, 4, 3, 0, -12, 101, -18, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; expected_binary_data = new byte[tmp.Length]; for (int i = 0; i < expected_binary_data.Length; i++) { expected_binary_data[i] = (byte)tmp[i]; } expected_metric_set = new base_error_metrics(expected_metrics, Version, header); c_csharp_comm.read_interop_from_buffer(expected_binary_data, (uint)expected_binary_data.Length, actual_metric_set); }
protected void SetUp() { base_cycle_metric_header header = new base_cycle_metric_header(); expected_metrics.Add(new error_metric(7, 1114, 1, 0.450100899f)); expected_metrics.Add(new error_metric(7, 1114, 2, 0.900201797f)); expected_metrics.Add(new error_metric(7, 1114, 3, 0.465621591f)); int[] tmp = new int[]{3,30,7,0,90,4,1,0,-96,115,-26,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,7,0,90,4,2,0,-96,115,102,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,7,0,90,4,3,0,-12,101,-18,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; expected_binary_data = new byte[tmp.Length]; for(int i=0;i<expected_binary_data.Length;i++) { expected_binary_data[i] = (byte)tmp[i]; } expected_metric_set = new base_error_metrics(expected_metrics, Version, header); c_csharp_comm.read_interop_from_buffer(expected_binary_data, (uint)expected_binary_data.Length, actual_metric_set); actual_metrics = actual_metric_set.metrics(); }
public base_error_metrics error_metric_set() { base_error_metrics ret = new base_error_metrics(c_csharp_run_metricsPINVOKE.run_metrics_error_metric_set(swigCPtr), false); return(ret); }