/// <summary> /// Returns the data for the methods to test. /// </summary> /// <returns>The data for the methods to test.</returns> public IEnumerable <MethodData> GetData() { return (from type in AssemblyUnderTest.GetTypes(TypeFilters).MapTypes(TypeMappings) from method in type.GetMethods(BindingFlags, MethodFilters) from data in SetupParameterData(type, method) select data); }
public virtual FxCopRuleValidator Build() { if (Rule == null) { throw new InvalidOperationException("Set rule first."); } AssemblyUnderTest assembly = assemblyUnderTestBuilder.Build(); return(new FxCopRuleValidator(Rule, assembly)); }
public void CheckAsserterForAssembly() { Assembly?arg = null; Assert.Throws <ArgumentNullException>("assembly", () => Test.That(arg !)); Assembly assembly = typeof(TestClass).Assembly; AssemblyUnderTest asserter = Test.That(assembly); Assert.NotNull(asserter); }