public void Ctors_Are_Internal() { const string context = nameof(context); var ctors = FixtureType.GetConstructors(NonPublic | Instance); Assert.Collection(ctors , ctor => VerifyParameters( ctor.GetParameters() , p => VerifyParameter <OptionContext>(p, context)) ); }
public void Ctors_Are_Protected() { const string prototype = nameof(prototype); const string description = nameof(description); // IL Family is the reflection of C# Protected var ctors = FixtureType.GetConstructors(NonPublic | Instance); Assert.Collection(ctors.Select(ctor => ctor.IsFamily), Assert.True); Assert.Collection(ctors , ctor => VerifyParameters( ctor.GetParameters() , p => VerifyParameter <string>(p, prototype) , p => VerifyParameter <string>(p, description) ) ); }