// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) 2014 OxyPlot contributors
//
// --------------------------------------------------------------------------------------------------------------------
namespace ExampleLibrary
{
using System;
///
/// Specifies the title for an example.
///
[AttributeUsage(AttributeTargets.Method)]
public class ExampleAttribute : Attribute
{
///
/// Initializes a new instance of the class.
///
/// The title.
/// A value indiciating whether the example should be excluded from automated tests.
public ExampleAttribute(string title = null, bool excludeFromAutomatedTests = false)
{
this.Title = title;
this.ExcludeFromAutomatedTests = excludeFromAutomatedTests;
}
///
/// Gets the title.
///
///
/// The title.
///
public string Title { get; private set; }
///
/// Gets a value indiciating whether this example should be excluded from automated tests.
///
///
/// true if the example should be excluded from automated tests, otherwise false.
///
public bool ExcludeFromAutomatedTests { get; }
}
}