Skip to content

Commit

Permalink
update zone tests to validate new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
AGS4NO committed Dec 5, 2023
1 parent 8016314 commit 5180db5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dnsimple-test/Services/ZonesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public void Zones()
Assert.AreEqual(1010, zones.First().AccountId);
Assert.AreEqual("example-alpha.com", zones.First().Name);
Assert.IsFalse(zones.First().Reverse);
Assert.IsFalse(zones.First().Secondary);
Assert.Null(zones.First().LastTransferredAt);
Assert.IsTrue(zones.First().Active);
Assert.AreEqual(CreatedAt, zones.First().CreatedAt);
Assert.AreEqual(UpdatedAt, zones.First().UpdatedAt);
});
Expand Down Expand Up @@ -126,6 +129,9 @@ public void GetZone(long accountId, string zoneName, string expectedUrl)
Assert.AreEqual(accountId, zone.AccountId);
Assert.AreEqual(zoneName, zone.Name);
Assert.False(zone.Reverse);
Assert.IsFalse(zone.Secondary);
Assert.Null(zone.LastTransferredAt);
Assert.IsTrue(zone.Active);
Assert.AreEqual(CreatedAt, zone.CreatedAt);
Assert.AreEqual(UpdatedAt, zone.UpdatedAt);

Expand Down

0 comments on commit 5180db5

Please sign in to comment.