public void TestShouldSelectWithDifferentConstructors(string description, BindingFlags flags, bool shouldSelect) { var constructor = new AnalysisDataResolver().Resolve(this.GetType().GetConstructors(flags)[0]); bool result = new TestableStaticConstructorsSelectionStrategy().ShouldSelect(constructor, null); Assert.AreEqual(shouldSelect, result); }
public void TestShouldSelectWithDifferentConstructors(string description, BindingFlags flags, bool shouldSelect) { var constructor = new AnalysisDataResolver().Resolve(this.GetType().GetConstructors(flags)[0]); bool result = new TestableStaticConstructorsSelectionStrategy().ShouldSelect(constructor, null); Assert.AreEqual(shouldSelect, result); }