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

Skip to content
Snippets Groups Projects
Forked from VECTO / VECTO Sim
4043 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
TestHelper.cs 662 B
using System;
using System.CodeDom;
using System.Runtime.CompilerServices;
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;
		}
	}
}