Beispiel #1
0
        public void AddTest(string assemblyNameOrFullName, string fixtureFullName, string methodName)
        {
            var assemblyName = assemblyNameOrFullName.Split(',')[0];
            var newItem      = new ConfiguredItem(assemblyName, fixtureFullName, methodName);

            foreach (var item in _configuredItems)
            {
                if (item.Equals(newItem))
                {
                    return; // new item is duplicate
                }
            }
            _configuredItems.Add(newItem);
        }
Beispiel #2
0
 public void AddTest(string assemblyNameOrFullName, string fixtureFullName, string methodName) {
    var assemblyName = assemblyNameOrFullName.Split(',')[0];
    var newItem = new ConfiguredItem(assemblyName, fixtureFullName, methodName);
    foreach (var item in _configuredItems) {
       if(item.Equals(newItem)) {
          return; // new item is duplicate
       }
    }
    _configuredItems.Add(newItem);
 }