/// <summary> /// Initializes a new instance of the <see cref="FixtureBase"/> class /// with the specified name and attribute that specifies a fixture. /// </summary> /// <param name="name">The name of a fixture.</param> /// <param name="attribute">The attribute that specifies a fixture.</param> protected FixtureBase(string name, FixtureAttribute attribute) { FixtureDescriptor = new FixtureDescriptor(name, attribute); }
/// <summary> /// Initializes a new instance of the <see cref="FixtureBase"/> class /// with the specified type of an instance of a fixture, name, full name, /// and attribute that specifies a fixture. /// </summary> /// <param name="fixtureInstanceType">The type of an instance of a fixture.</param> /// <param name="name">The name of a fixture.</param> /// <param name="fullName">The full name of a fixture.</param> /// <param name="attribute">The attribute that specifies a fixture.</param> protected FixtureBase(Type fixtureInstanceType, string name, string fullName, FixtureAttribute attribute) : this(fixtureInstanceType, new FixtureDescriptor(name, fullName, attribute)) { }
/// <summary> /// Initializes a new instance of the <see cref="FixtureDescriptor"/> class /// with the specified name and attribute that specifies a fixture. /// </summary> /// <param name="name">The name of a fixture.</param> /// <param name="attribute">The attribute that specifies a fixture.</param> public FixtureDescriptor(string name, FixtureAttribute attribute) : this(name, name, attribute) { }
/// <summary> /// Initializes a new instance of the <see cref="FixtureBase"/> class /// with the specified type of an instance of a fixture, fixture method /// and attribute that specifies a fixture. /// </summary> /// <param name="fixtureInstanceType">The type of an instance of a fixture.</param> /// <param name="fixtureMethod">The fixture method.</param> /// <param name="attribute">The attribute that specifies a fixture.</param> protected FixtureBase(Type fixtureInstanceType, MethodInfo fixtureMethod, FixtureAttribute attribute) : this(fixtureInstanceType, fixtureMethod.Name, $"{fixtureInstanceType.FullName}.{fixtureMethod.Name}", attribute) { }
/// <summary> /// Initializes a new instance of the <see cref="FixtureDescriptor"/> class /// with the specified name, full name, and attribute that specifies a fixture. /// </summary> /// <param name="name">The name of a fixture.</param> /// <param name="fullName">The full name of a fixture.</param> /// <param name="attribute">The attribute that specifies a fixture.</param> public FixtureDescriptor(string name, string fullName, FixtureAttribute attribute) { Attribute = attribute; Name = name; FullName = fullName; }