Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
TestHelper.cs 662 B
Newer Older
using System;
using System.CodeDom;
using System.Runtime.CompilerServices;
Harald Martini's avatar
Harald Martini committed
using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCore.InputData.FileIO.XML;

namespace Vecto3GUI2020Test
{
	public class TestHelper
	{
		private IXMLInputDataReader _inputDataReader;

		public TestHelper(IXMLInputDataReader inputDataReader)
		{
			_inputDataReader = inputDataReader;
		}




		public IInputDataProvider GetInputDataProvider(string fileName)
		{
			return _inputDataReader.Create(fileName);
		}

		public static string GetMethodName([CallerMemberName] string name = null)
		{
			if (name == null) {
				throw new ArgumentException();
			}
			return name;
		}
Harald Martini's avatar
Harald Martini committed
	}
}