コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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))
 {
 }
コード例 #3
0
ファイル: FixtureDescriptor.cs プロジェクト: averrunci/Carna
 /// <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)
 {
 }
コード例 #4
0
 /// <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)
 {
 }
コード例 #5
0
ファイル: FixtureDescriptor.cs プロジェクト: averrunci/Carna
 /// <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;
 }