Skip to content

Commit 52e4ce9

Browse files
author
samatrhea
committed
[Fix] ReaderTestFixture - Annotation
1 parent db0e46d commit 52e4ce9

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

SysML2.NET.Serializer.Dictionary.Tests/ReaderTestFixture.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
170170
{ "annotatedElement", Guid.Parse("bb66c812-3408-4166-99d9-402b798093e1")},
171171
{ "annotatingElement", Guid.Parse("e6d3d799-fd33-49d1-a1c9-ceae0548de18")},
172172
{ "elementId", "element id" },
173-
{ "isImpliedIncluded", true },
173+
{ "isImplied", true },
174174
{ "isImpliedIncluded", true},
175175
{ "name", "the name" },
176176
{ "ownedRelatedElement", new List<Guid> { Guid.Parse("c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7") } },
@@ -182,7 +182,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
182182
{ "target", new List<Guid> { Guid.Parse("38c03271-5de8-4947-93db-20993d7a9dc2") }}
183183
};
184184

185-
var annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotatingElement;
185+
var annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotation;
186186

187187
Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e")));
188188
Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List<string> { "alias_1", "alias_2" }));
@@ -203,7 +203,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
203203
{ "annotatedElement", Guid.Parse("bb66c812-3408-4166-99d9-402b798093e1")},
204204
{ "annotatingElement", Guid.Parse("e6d3d799-fd33-49d1-a1c9-ceae0548de18")},
205205
{ "elementId", "element id" },
206-
{ "isImpliedIncluded", true },
206+
{ "isImplied", true },
207207
{ "isImpliedIncluded", true},
208208
{ "name", null },
209209
{ "ownedRelatedElement", new List<Guid> () },
@@ -215,7 +215,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
215215
{ "target", new List<Guid> ()}
216216
};
217217

218-
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotatingElement;
218+
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Complex) as IAnnotation;
219219

220220
Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e")));
221221
Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List<string>()));
@@ -236,7 +236,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
236236
{ "annotatedElement", "bb66c812-3408-4166-99d9-402b798093e1"},
237237
{ "annotatingElement", "e6d3d799-fd33-49d1-a1c9-ceae0548de18"},
238238
{ "elementId", "element id" },
239-
{ "isImpliedIncluded", true },
239+
{ "isImplied", true },
240240
{ "isImpliedIncluded", true},
241241
{ "name", "the name" },
242242
{ "ownedRelatedElement", new List<string> { "c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7" } },
@@ -248,7 +248,7 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
248248
{ "target", new List<string> { "38c03271-5de8-4947-93db-20993d7a9dc2" }}
249249
};
250250

251-
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotatingElement;
251+
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotation;
252252

253253
Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e")));
254254
Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List<string> { "alias_1", "alias_2" }));
@@ -265,23 +265,23 @@ public void Verify_that_when_dictionary_is_read_instance_of_IAnnotation_is_retur
265265
{
266266
{ "@type", "Annotation" },
267267
{ "@id", "0b192c18-afa2-44b6-8de2-86e5e6ffa09e" },
268-
{ "aliasIds", new List<string> { "alias_1", "alias_2" } },
268+
{ "aliasIds", new List<string> () },
269269
{ "annotatedElement", "bb66c812-3408-4166-99d9-402b798093e1"},
270270
{ "annotatingElement", "e6d3d799-fd33-49d1-a1c9-ceae0548de18"},
271271
{ "elementId", "element id" },
272-
{ "isImpliedIncluded", true },
272+
{ "isImplied", true },
273273
{ "isImpliedIncluded", true},
274-
{ "name", "the name" },
275-
{ "ownedRelatedElement", new List<string> { "c18450a9-fd96-4dd6-83c4-de5e6e1bd2f7" } },
276-
{ "ownedRelationship", new List<string> { "9006ff06-43fe-4a4e-a4bc-402e82f84dde" } },
277-
{ "owningRelatedElement", "df9670d5-36a7-4128-aa96-928432a80e42" },
278-
{ "owningRelationship", "fe6d7f0c-6e7b-4ce9-acbe-25d2537f08d9" },
279-
{ "shortName", "the shortName" },
280-
{ "source", new List<string> { "8ba10c06-4c00-4748-ae60-a724ef773e29" }},
281-
{ "target", new List<string> { "38c03271-5de8-4947-93db-20993d7a9dc2" }}
274+
{ "name", null },
275+
{ "ownedRelatedElement", new List<string> () },
276+
{ "ownedRelationship", new List<string> () },
277+
{ "owningRelatedElement", null},
278+
{ "owningRelationship", null },
279+
{ "shortName", null },
280+
{ "source", new List<string> ()},
281+
{ "target", new List<string> ()}
282282
};
283283

284-
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotatingElement;
284+
annotatingElement = reader.Read(this.dictionary, DictionaryKind.Simplified) as IAnnotation;
285285

286286
Assert.That(annotatingElement.Id, Is.EqualTo(Guid.Parse("0b192c18-afa2-44b6-8de2-86e5e6ffa09e")));
287287
Assert.That(annotatingElement.AliasIds, Is.EqualTo(new List<string>()));

0 commit comments

Comments
 (0)