tests/xharness/Microsoft.DotNet.XHarness.iOS.Shared/TestImporter/ProjectDefinition.cs
/// <summary>
/// Ensures that the project is correctly defined and does not mix NUnit and xUnit.
/// </summary>
/// <returns></returns>
Ensures that the project is correctly defined and does not mix NUnit and xUnit.
Ensures that the project is correctly defined and does not mix NUnit and xUnit .
public bool Validate ()
		{
			var xUnitAssemblies = new List<ITestAssemblyDefinition> ();
			var nUnitAssemblies = new List<ITestAssemblyDefinition> ();
			foreach (var assemblyDefinition in TestAssemblies) {
				if (assemblyDefinition.IsXUnit)
					xUnitAssemblies.Add (assemblyDefinition);
				else
					nUnitAssemblies.Add (assemblyDefinition);
			}
			return TestAssemblies.Count == xUnitAssemblies.Count || TestAssemblies.Count == nUnitAssemblies.Count;
		}
public bool Validate ( ) { var xUnitAssemblies = new List < ITestAssemblyDefinition > ( ) ; var nUnitAssemblies = new List < ITestAssemblyDefinition > ( ) ; foreach ( var assemblyDefinition in TestAssemblies ) { if ( assemblyDefinition . IsXUnit ) xUnitAssemblies . Add ( assemblyDefinition ) ; else nUnitAssemblies . Add ( assemblyDefinition ) ; } return TestAssemblies . Count == xUnitAssemblies . Count || TestAssemblies . Count == nUnitAssemblies . Count ; }
Ensures that the project is correctly defined and does not mix NUnit and xUnit.
Ensures that the project is correctly defined and does not mix NUnit and xUnit .
// what a lame way to test this!
None