public void RetrieveTest_withInvalidID_AdditionalInfo() { // Arrange AspectRatio entry = new AspectRatio("_aaa"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aaa", entry.ID); Assert.IsNull(entry.Ratio); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }
public void RetrieveTest_withValidID_AdditionalInfo() { // Arrange AspectRatio entry = new AspectRatio("_xxx"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(1, count); Assert.AreEqual("_xxx", entry.ID); Assert.AreEqual("AspectRatio Ratio X", entry.Ratio); Assert.AreEqual("AspectRatio Details X", entry.Details); Assert.AreEqual("_xxx", entry.Status.ID); Assert.AreEqual("AspectRatio LastUpdated X", entry.LastUpdated); }