10 instantiations of TimeSpanAttribute
Shared.Tests (10)
Data.Validation\TimeSpanAttributeTests.cs (10)
15
[
TimeSpan
(0, 10)]
18
[
TimeSpan
(0)]
80
[
TimeSpan
(0, 10, Exclusive = true)]
83
[
TimeSpan
(0, Exclusive = true)]
143
[
TimeSpan
("00:00:00", "00:00:00.01")]
146
[
TimeSpan
("00:00:00")]
208
[
TimeSpan
(0, 10)]
214
[
TimeSpan
(10, 9)]
220
[
TimeSpan
(10, 10)]
248
var attr = new
TimeSpanAttribute
(0, 10);
7 references to TimeSpanAttribute
Shared (6)
Data.Validation\TimeSpanAttribute.cs (6)
62
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
72
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
83
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
95
/// Initializes a new instance of the <see cref="
TimeSpanAttribute
"/> class.
121
throw new InvalidOperationException($"{nameof(
TimeSpanAttribute
)} requires that the minimum value be less than the maximum value (see field {validationContext.GetDisplayName()})");
158
throw new InvalidOperationException($"{nameof(
TimeSpanAttribute
)} can only be used with fields of type TimeSpan (see field {validationContext.GetDisplayName()})");
Shared.Tests (1)
Data.Validation\TimeSpanAttributeTests.cs (1)
248
var
attr = new TimeSpanAttribute(0, 10);