@@ -17,10 +17,10 @@ namespace OnTopic.Tests {
17
17
\---------------------------------------------------------------------------------------------------------------------------*/
18
18
/// <summary>
19
19
/// Provides unit tests for the <see cref="TopicReferenceCollection"/>, with a particular emphasis on the custom features
20
- /// such as <see cref="TrackedCollection {TItem, TValue, TAttribute}.IsDirty()"/>, <see cref="TrackedCollection{TItem,
21
- /// TValue, TAttribute}.GetValue(String, Boolean)"/>, <see cref="TrackedCollection {TItem, TValue, TAttribute}.SetValue(
22
- /// String, TValue, Boolean?, DateTime?)"/>, and the cross-referencing of reciprocal values in the <see cref="Topic.
23
- /// IncomingRelationships"/> property.
20
+ /// such as <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.IsDirty()"/>, <see cref="TrackedRecordCollection{
21
+ /// TItem, TValue, TAttribute}.GetValue(String, Boolean)"/>, <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.
22
+ /// SetValue( String, TValue, Boolean?, DateTime?)"/>, and the cross-referencing of reciprocal values in the <see cref="
23
+ /// Topic. IncomingRelationships"/> property.
24
24
/// </summary>
25
25
[ TestClass ]
26
26
public class TopicReferenceCollectionTest {
@@ -30,7 +30,7 @@ public class TopicReferenceCollectionTest {
30
30
\-------------------------------------------------------------------------------------------------------------------------*/
31
31
/// <summary>
32
32
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference, and confirms that
33
- /// <see cref="TrackedCollection {TItem, TValue, TAttribute}.IsDirty()"/> is correctly set.
33
+ /// <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.IsDirty()"/> is correctly set.
34
34
/// </summary>
35
35
[ TestMethod ]
36
36
public void Add_NewReference_IsDirty ( ) {
@@ -50,8 +50,8 @@ public void Add_NewReference_IsDirty() {
50
50
\-------------------------------------------------------------------------------------------------------------------------*/
51
51
/// <summary>
52
52
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
53
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, and confirms that <see
54
- /// cref="TrackedCollection {TItem, TValue, TAttribute}.IsDirty()"/> is not set.
53
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, and confirms that
54
+ /// <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.IsDirty()"/> is not set.
55
55
/// </summary>
56
56
[ TestMethod ]
57
57
public void SetValue_NewReference_NotDirty ( ) {
@@ -71,8 +71,8 @@ public void SetValue_NewReference_NotDirty() {
71
71
\-------------------------------------------------------------------------------------------------------------------------*/
72
72
/// <summary>
73
73
/// Assembles a new <see cref="TopicReferenceCollection"/> with a topic reference, removes that reference using <see cref=
74
- /// "TrackedCollection {TItem, TValue, TAttribute}.RemoveItem(Int32)"/>, and confirms that <see cref="TrackedCollection{
75
- /// TItem, TValue, TAttribute}.IsDirty()"/> is set.
74
+ /// "TrackedRecordCollection {TItem, TValue, TAttribute}.RemoveItem(Int32)"/>, and confirms that <see cref="
75
+ /// TrackedRecordCollection{ TItem, TValue, TAttribute}.IsDirty()"/> is set.
76
76
/// </summary>
77
77
[ TestMethod ]
78
78
public void Remove_ExistingReference_IsDirty ( ) {
@@ -93,9 +93,9 @@ public void Remove_ExistingReference_IsDirty() {
93
93
\-------------------------------------------------------------------------------------------------------------------------*/
94
94
/// <summary>
95
95
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
96
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, calls <see cref="
97
- /// TrackedCollection {TItem, TValue, TAttribute}.ClearItems()"/> and confirms that <see cref="TrackedCollection{TItem,
98
- /// TValue, TAttribute}.IsDirty()"/> is set.
96
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, calls <see cref="
97
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.ClearItems()"/> and confirms that <see cref="
98
+ /// TrackedRecordCollection{TItem, TValue, TAttribute}.IsDirty()"/> is set.
99
99
/// </summary>
100
100
[ TestMethod ]
101
101
public void Clear_ExistingReferences_IsDirty ( ) {
@@ -116,9 +116,9 @@ public void Clear_ExistingReferences_IsDirty() {
116
116
\-------------------------------------------------------------------------------------------------------------------------*/
117
117
/// <summary>
118
118
/// Assembles a new <see cref="TopicReferenceCollection"/> and adds a new <see cref="Topic"/> reference using <see cref="
119
- /// KeyedCollection{TKey, TItem}.InsertItem(Int32, TItem)"/> with <see cref="TrackedItem {T}.IsDirty"/> set to <c>false
120
- /// </c>, confirming that <see cref="TrackedCollection {TItem, TValue, TAttribute}.IsDirty()"/> remains <c>true</c> since
121
- /// the target <see cref="Topic"/> is unsaved.
119
+ /// KeyedCollection{TKey, TItem}.InsertItem(Int32, TItem)"/> with <see cref="TrackedRecord {T}.IsDirty"/> set to <c>false
120
+ /// </c>, confirming that <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.IsDirty()"/> remains <c>true</c>
121
+ /// since the target <see cref="Topic"/> is unsaved.
122
122
/// </summary>
123
123
[ TestMethod ]
124
124
public void Add_NewTopic_IsDirty ( ) {
@@ -137,8 +137,8 @@ public void Add_NewTopic_IsDirty() {
137
137
\-------------------------------------------------------------------------------------------------------------------------*/
138
138
/// <summary>
139
139
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
140
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, and confirms that <see
141
- /// cref="Topic.IncomingRelationships"/> reference is correctly set.
140
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, and confirms that
141
+ /// <see cref="Topic.IncomingRelationships"/> reference is correctly set.
142
142
/// </summary>
143
143
[ TestMethod ]
144
144
public void Add_NewReference_IncomingRelationshipSet ( ) {
@@ -157,9 +157,9 @@ public void Add_NewReference_IncomingRelationshipSet() {
157
157
\-------------------------------------------------------------------------------------------------------------------------*/
158
158
/// <summary>
159
159
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
160
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, removes the reference
161
- /// using <see cref="TrackedCollection {TItem, TValue, TAttribute}.RemoveItem(Int32)"/>, and confirms that the <see cref="
162
- /// Topic.IncomingRelationships"/> reference is correctly removed as well.
160
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, removes the
161
+ /// reference using <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.RemoveItem(Int32)"/>, and confirms that
162
+ /// the <see cref=" Topic.IncomingRelationships"/> reference is correctly removed as well.
163
163
/// </summary>
164
164
[ TestMethod ]
165
165
public void Remove_ExistingReference_IncomingRelationshipRemoved ( ) {
@@ -179,9 +179,9 @@ public void Remove_ExistingReference_IncomingRelationshipRemoved() {
179
179
\-------------------------------------------------------------------------------------------------------------------------*/
180
180
/// <summary>
181
181
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
182
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, updates the reference
183
- /// using <see cref="TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, and
184
- /// confirms that the <see cref="Topic"/> reference is correctly updated.
182
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, updates the
183
+ /// reference using <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?,
184
+ /// DateTime?)"/>, and confirms that the <see cref="Topic"/> reference is correctly updated.
185
185
/// </summary>
186
186
[ TestMethod ]
187
187
public void SetValue_ExistingReference_TopicUpdated ( ) {
@@ -202,9 +202,9 @@ public void SetValue_ExistingReference_TopicUpdated() {
202
202
\-------------------------------------------------------------------------------------------------------------------------*/
203
203
/// <summary>
204
204
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference using <see cref="
205
- /// TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, updates the reference
206
- /// with a null value using <see cref="TrackedCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean? ,
207
- /// DateTime?)"/>, and confirms that the <see cref="Topic"/> reference is correctly removed.
205
+ /// TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String, TValue, Boolean?, DateTime?)"/>, updates the
206
+ /// reference with a null value using <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.SetValue(String,
207
+ /// TValue, Boolean?, DateTime?)"/>, and confirms that the <see cref="Topic"/> reference is correctly removed.
208
208
/// </summary>
209
209
[ TestMethod ]
210
210
public void SetValue_NullReference_TopicRemoved ( ) {
@@ -245,8 +245,8 @@ public void Add_NewReference_TopicIsDirty() {
245
245
\-------------------------------------------------------------------------------------------------------------------------*/
246
246
/// <summary>
247
247
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference, and confirms that
248
- /// <see cref="TrackedCollection {TItem, TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns the <see cref="
249
- /// Topic"/>.
248
+ /// <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns the <see
249
+ /// cref=" Topic"/>.
250
250
/// </summary>
251
251
[ TestMethod ]
252
252
public void GetTopic_ExistingReference_ReturnsTopic ( ) {
@@ -265,8 +265,8 @@ public void GetTopic_ExistingReference_ReturnsTopic() {
265
265
\-------------------------------------------------------------------------------------------------------------------------*/
266
266
/// <summary>
267
267
/// Assembles a new <see cref="TopicReferenceCollection"/>, adds a new <see cref="Topic"/> reference, and confirms that
268
- /// <see cref="TrackedCollection {TItem, TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null</c> if
269
- /// an incorrect <c>referencedKey</c> is entered.
268
+ /// <see cref="TrackedRecordCollection {TItem, TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null
269
+ /// </c> if an incorrect <c>referencedKey</c> is entered.
270
270
/// </summary>
271
271
[ TestMethod ]
272
272
public void GetTopic_MissingReference_ReturnsNull ( ) {
@@ -285,8 +285,8 @@ public void GetTopic_MissingReference_ReturnsNull() {
285
285
\-------------------------------------------------------------------------------------------------------------------------*/
286
286
/// <summary>
287
287
/// Assembles a new <see cref="TopicReferenceCollection"/> with a <see cref="Topic.BaseTopic"/>, adds a new <see cref="
288
- /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedCollection {TItem, TValue ,
289
- /// TAttribute}.GetValue(String, Boolean)"/> correctly returns the related topic reference.
288
+ /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedRecordCollection {TItem,
289
+ /// TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns the related topic reference.
290
290
/// </summary>
291
291
[ TestMethod ]
292
292
public void GetTopic_InheritedReference_ReturnsTopic ( ) {
@@ -307,8 +307,8 @@ public void GetTopic_InheritedReference_ReturnsTopic() {
307
307
\-------------------------------------------------------------------------------------------------------------------------*/
308
308
/// <summary>
309
309
/// Assembles a new <see cref="TopicReferenceCollection"/> with a <see cref="Topic.BaseTopic"/>, adds a new <see cref="
310
- /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedCollection {TItem, TValue ,
311
- /// TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null</c> if an incorrect <c>referencedKey</c> is
310
+ /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedRecordCollection {TItem,
311
+ /// TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null</c> if an incorrect <c>referencedKey</c> is
312
312
/// entered.
313
313
/// </summary>
314
314
[ TestMethod ]
@@ -330,8 +330,8 @@ public void GetTopic_InheritedReference_ReturnsNull() {
330
330
\-------------------------------------------------------------------------------------------------------------------------*/
331
331
/// <summary>
332
332
/// Assembles a new <see cref="TopicReferenceCollection"/> with a <see cref="Topic.BaseTopic"/>, adds a new <see cref="
333
- /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedCollection {TItem, TValue ,
334
- /// TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null</c> if <c>inheritFromBase</c> is set to
333
+ /// Topic"/> reference to the <see cref="Topic.BaseTopic"/>, and confirms that <see cref="TrackedRecordCollection {TItem,
334
+ /// TValue, TAttribute}.GetValue(String, Boolean)"/> correctly returns <c>null</c> if <c>inheritFromBase</c> is set to
335
335
/// <c>false</c>.
336
336
/// </summary>
337
337
[ TestMethod ]
0 commit comments