8
8
namespace OnTopic . Tests {
9
9
10
10
/*============================================================================================================================
11
- | CLASS: ATTRIBUTE VALUE DICTIONARY TEST
11
+ | CLASS: ATTRIBUTE DICTIONARY TEST
12
12
\---------------------------------------------------------------------------------------------------------------------------*/
13
13
/// <summary>
14
- /// Provides unit tests for the <see cref="AttributeValueDictionary "/> class.
14
+ /// Provides unit tests for the <see cref="AttributeDictionary "/> class.
15
15
/// </summary>
16
16
[ ExcludeFromCodeCoverage ]
17
17
public class AttributeDictionaryTest {
@@ -20,8 +20,8 @@ public class AttributeDictionaryTest {
20
20
| TEST: GET VALUE: RETURNS EXPECTED VALUE
21
21
\-------------------------------------------------------------------------------------------------------------------------*/
22
22
/// <summary>
23
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
24
- /// cref="AttributeValueDictionary .GetValue(String)"/> returns the <paramref name="expected"/> value.
23
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see cref=
24
+ /// "AttributeDictionary .GetValue(String)"/> returns the <paramref name="expected"/> value.
25
25
/// </summary>
26
26
/// <param name="input">The value to add to the dictionary.</param>
27
27
/// <param name="expected">The value expected to be returned.</param>
@@ -34,7 +34,7 @@ public class AttributeDictionaryTest {
34
34
[ InlineData ( "Hello" , "Hello" ) ]
35
35
public void GetValue_ReturnsExpectedValue ( string ? input , string ? expected ) {
36
36
37
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
37
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
38
38
39
39
Assert . Equal ( expected , attributes . GetValue ( "Key" ) ) ;
40
40
@@ -44,8 +44,8 @@ public void GetValue_ReturnsExpectedValue(string? input, string? expected) {
44
44
| TEST: GET BOOLEAN: RETURNS EXPECTED VALUE
45
45
\-------------------------------------------------------------------------------------------------------------------------*/
46
46
/// <summary>
47
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
48
- /// cref="AttributeValueDictionary .GetBoolean(String)"/> returns the <paramref name="expected"/> value.
47
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see cref=
48
+ /// "AttributeDictionary .GetBoolean(String)"/> returns the <paramref name="expected"/> value.
49
49
/// </summary>
50
50
/// <param name="input">The value to add to the dictionary.</param>
51
51
/// <param name="expected">The value expected to be returned.</param>
@@ -58,7 +58,7 @@ public void GetValue_ReturnsExpectedValue(string? input, string? expected) {
58
58
[ InlineData ( "Hello" , null ) ]
59
59
public void GetBoolean_ReturnsExpectedValue ( string input , bool ? expected ) {
60
60
61
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
61
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
62
62
63
63
Assert . Equal ( expected , attributes . GetBoolean ( "Key" ) ) ;
64
64
@@ -68,8 +68,8 @@ public void GetBoolean_ReturnsExpectedValue(string input, bool? expected) {
68
68
| TEST: GET INTEGER: RETURNS EXPECTED VALUE
69
69
\-------------------------------------------------------------------------------------------------------------------------*/
70
70
/// <summary>
71
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
72
- /// cref="AttributeValueDictionary .GetInteger(String)"/> returns the <paramref name="expected"/> value.
71
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see
72
+ /// cref="AttributeDictionary .GetInteger(String)"/> returns the <paramref name="expected"/> value.
73
73
/// </summary>
74
74
/// <param name="input">The value to add to the dictionary.</param>
75
75
/// <param name="expected">The value expected to be returned.</param>
@@ -81,7 +81,7 @@ public void GetBoolean_ReturnsExpectedValue(string input, bool? expected) {
81
81
[ InlineData ( "Hello" , null ) ]
82
82
public void GetInteger_ReturnsExpectedValue ( string input , int ? expected ) {
83
83
84
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
84
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
85
85
86
86
Assert . Equal ( expected , attributes . GetInteger ( "Key" ) ) ;
87
87
@@ -91,8 +91,8 @@ public void GetInteger_ReturnsExpectedValue(string input, int? expected) {
91
91
| TEST: GET DOUBLE: RETURNS EXPECTED VALUE
92
92
\-------------------------------------------------------------------------------------------------------------------------*/
93
93
/// <summary>
94
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
95
- /// cref="AttributeValueDictionary .GetDouble(String)"/> returns the <paramref name="expected"/> value.
94
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see cref=
95
+ /// "AttributeDictionary .GetDouble(String)"/> returns the <paramref name="expected"/> value.
96
96
/// </summary>
97
97
/// <param name="input">The value to add to the dictionary.</param>
98
98
/// <param name="expected">The value expected to be returned.</param>
@@ -105,7 +105,7 @@ public void GetInteger_ReturnsExpectedValue(string input, int? expected) {
105
105
[ InlineData ( "Hello" , null ) ]
106
106
public void GetDouble_ReturnsExpectedValue ( string input , double ? expected ) {
107
107
108
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
108
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
109
109
110
110
Assert . Equal ( expected , attributes . GetDouble ( "Key" ) ) ;
111
111
@@ -115,8 +115,8 @@ public void GetDouble_ReturnsExpectedValue(string input, double? expected) {
115
115
| TEST: GET DATE/TIME: RETURNS EXPECTED VALUE
116
116
\-------------------------------------------------------------------------------------------------------------------------*/
117
117
/// <summary>
118
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
119
- /// cref="AttributeValueDictionary .GetDateTime(String)"/> returns the expected value.
118
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see cref=
119
+ /// "AttributeDictionary .GetDateTime(String)"/> returns the expected value.
120
120
/// </summary>
121
121
/// <param name="input">The value to add to the dictionary.</param>
122
122
/// <param name="isSet">Determines whether a valid <see cref="DateTime"/> is expected in response.</param>
@@ -129,7 +129,7 @@ public void GetDouble_ReturnsExpectedValue(string input, double? expected) {
129
129
[ InlineData ( "Hello" , false ) ]
130
130
public void GetDate_ReturnsExpectedValue ( string input , bool isSet ) {
131
131
132
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
132
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
133
133
134
134
Assert . Equal ( isSet ? new DateTime ( 1976 , 10 , 15 , 1 , 2 , 3 ) : null , attributes . GetDateTime ( "Key" ) ) ;
135
135
@@ -139,16 +139,16 @@ public void GetDate_ReturnsExpectedValue(string input, bool isSet) {
139
139
| TEST: GET URI: RETURNS EXPECTED VALUE
140
140
\-------------------------------------------------------------------------------------------------------------------------*/
141
141
/// <summary>
142
- /// Constructs a <see cref="AttributeValueDictionary "/> based on the <paramref name="input"/> data and confirms that <see
143
- /// cref="AttributeValueDictionary .GetUri(String)"/> returns the expected value.
142
+ /// Constructs a <see cref="AttributeDictionary "/> based on the <paramref name="input"/> data and confirms that <see cref=
143
+ /// "AttributeDictionary .GetUri(String)"/> returns the expected value.
144
144
/// </summary>
145
145
/// <param name="input">The value to add to the dictionary.</param>
146
146
[ Theory ]
147
147
[ InlineData ( "https://www.github.com/OnTopicCMS" ) ]
148
148
[ InlineData ( "Some:\\ \\ URL" ) ]
149
149
public void GetUri_ReturnsExpectedValue ( string input ) {
150
150
151
- var attributes = new AttributeValueDictionary ( ) { { "Key" , input } } ;
151
+ var attributes = new AttributeDictionary ( ) { { "Key" , input } } ;
152
152
153
153
Assert . Equal ( new Uri ( input ) , attributes . GetUri ( "Key" ) ) ;
154
154
@@ -158,13 +158,13 @@ public void GetUri_ReturnsExpectedValue(string input) {
158
158
| TEST: GET {TYPE}: INVALID KEY: RETURNS NULL
159
159
\-------------------------------------------------------------------------------------------------------------------------*/
160
160
/// <summary>
161
- /// Constructs a <see cref="AttributeValueDictionary "/> and confirms that each of the <see cref="AttributeValueDictionary.
162
- /// GetValue( String)"/> methods return <c>null</c> if an invalid key is passed.
161
+ /// Constructs a <see cref="AttributeDictionary "/> and confirms that each of the <see cref="AttributeDictionary.GetValue(
162
+ /// String)"/> methods return <c>null</c> if an invalid key is passed.
163
163
/// </summary>
164
164
[ Fact ]
165
165
public void GetType_InvalidKey_ReturnsNull ( ) {
166
166
167
- var attributes = new AttributeValueDictionary ( ) ;
167
+ var attributes = new AttributeDictionary ( ) ;
168
168
169
169
Assert . Null ( attributes . GetValue ( "MissingKey" ) ) ;
170
170
Assert . Null ( attributes . GetBoolean ( "MissingKey" ) ) ;
@@ -179,8 +179,8 @@ public void GetType_InvalidKey_ReturnsNull() {
179
179
| TEST: AS ATTRIBUTE DICTIONARY: EXCLUDED KEYS: EXCLUDED
180
180
\-------------------------------------------------------------------------------------------------------------------------*/
181
181
/// <summary>
182
- /// Constructs a <see cref="AttributeValueDictionary "/> using <see cref="AttributeCollection.AsAttributeDictionary(Boolean
183
- /// )"/> and confirms that <see cref="AttributeValueDictionary .GetValue(String)"/> doesn't include the excluded values.
182
+ /// Constructs a <see cref="AttributeDictionary "/> using <see cref="AttributeCollection.AsAttributeDictionary(Boolean)"/>
183
+ /// and confirms that <see cref="AttributeDictionary .GetValue(String)"/> doesn't include the excluded values.
184
184
/// </summary>
185
185
[ Fact ]
186
186
public void AsAttributeDictionary_ExcludedKeys_Excluded ( ) {
@@ -204,8 +204,8 @@ public void AsAttributeDictionary_ExcludedKeys_Excluded() {
204
204
| TEST: AS ATTRIBUTE DICTIONARY: INHERIT FROM BASE: INHERITS VALUES
205
205
\-------------------------------------------------------------------------------------------------------------------------*/
206
206
/// <summary>
207
- /// Constructs a <see cref="AttributeValueDictionary "/> using <see cref="AttributeCollection.AsAttributeDictionary(Boolean
208
- /// )"/> and confirms that <see cref="AttributeValueDictionary .GetValue(String)"/> correctly inherits values.
207
+ /// Constructs a <see cref="AttributeDictionary "/> using <see cref="AttributeCollection.AsAttributeDictionary(Boolean)"/>
208
+ /// and confirms that <see cref="AttributeDictionary .GetValue(String)"/> correctly inherits values.
209
209
/// </summary>
210
210
[ Fact ]
211
211
public void AsAttributeDictionary_InheritFromBase_InheritsValues ( ) {
0 commit comments