Skip to content

Commit

Permalink
test(ServiceDiscovery): AnswersContainsAdditionalRecords
Browse files Browse the repository at this point in the history
When AnswersContainsAdditionalRecords is true, add the additional records to
the answers section and then clear the additional records section.
  • Loading branch information
richardschneider committed Jun 9, 2019
1 parent 170c088 commit da01d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ServiceDiscoveryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ public void Discover_ServiceInstance_WithAnswersContainingAdditionRecords()
var answersCount = additionalRecordsCount +
1; // PTRRecord

Assert.AreEqual(additionalRecordsCount, discovered.AdditionalRecords.Count);
Assert.AreEqual(additionalRecordsCount + 1, discovered.Answers.Count);
Assert.AreEqual(0, discovered.AdditionalRecords.Count);
Assert.AreEqual(answersCount, discovered.Answers.Count);
}
}

Expand Down

0 comments on commit da01d30

Please sign in to comment.