using System.Linq; namespace JD.UserControls.QuickOpenDialogs { /// /// Makes tests /// public class Verify { /// /// Returns a value that can be used to test. /// /// /// /// public static ThatElement That(T value) { return new ThatElement(value); } /// /// Helper struct to help to make cool syntax. /// /// public struct ThatElement { private readonly T m_value; /// /// Ctor. /// /// public ThatElement(T value) { m_value = value; } /// /// Tests the the value is in one of the given values. /// /// /// public bool IsIn(params T[] values) { return values.Contains(m_value); } } } }