Пример #1
0
		public void AddParameterSetFilter(IParameterSetFilter filter)
		{
			if (filter == null)
				throw new ArgumentNullException("filter");
			
			parameterSetFilters.Add(filter);
		}
Пример #2
0
        public void AddParameterSetFilter(IParameterSetFilter filter)
        {
            if (filter == null)
            {
                throw new ArgumentNullException("filter");
            }

            parameterSetFilters.Add(filter);
        }
        public void GetParametersFor_CallsParameterSetFilter()
        {
            DynamicMock         parameterSetFilterMock = new DynamicMock(typeof(IParameterSetFilter));
            IParameterSetFilter parameterSetFilter     = (IParameterSetFilter)parameterSetFilterMock.MockInstance;

            parameterProvider.AddParameterSetFilter(parameterSetFilter);

            parameterSetFilterMock.Expect("Filter", Is.TypeOf(typeof(ParameterSet)), Is.Not.Null);
            parameterSetFilterMock.Expect("Filter", Is.TypeOf(typeof(ParameterSet)), Is.Not.Null);

            parameterProvider.GetTestCasesFor(GetTestClassMethod("RowTestMethodWith2Rows"));

            parameterSetFilterMock.Verify();
        }