public void RetrieveAdditionalInformationTest_withInvalidID() { // Arrange CinematographicProcess entry = new CinematographicProcess("_aaa"); // Act int count = entry.RetrieveAdditionalInformation(); // Assert Assert.AreEqual(0, count); }
public void CinematographicProcessTest_withID() { // Arrange CinematographicProcess entry = new CinematographicProcess("_xxx"); // Act // Assert Assert.IsNotNull(entry); Assert.IsNotNull(entry.Reader); Assert.AreEqual("_xxx", entry.ID); Assert.IsNull(entry.Name); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }
public void RetrieveBasicInformationTest_withValidID_AdditionalInfo() { // Arrange CinematographicProcess entry = new CinematographicProcess("_xxx"); // Act int count = entry.RetrieveBasicInformation(false); // Assert Assert.AreEqual(1, count); Assert.AreEqual("_xxx", entry.ID); Assert.AreEqual("CinematographicProcess Name X", entry.Name); Assert.AreEqual("CinematographicProcess Details X", entry.Details); Assert.AreEqual("_xxx", entry.Status.ID); Assert.AreEqual("CinematographicProcess LastUpdated X", entry.LastUpdated); }
public void RetrieveTest_withInvalidID_AdditionalInfo() { // Arrange CinematographicProcess entry = new CinematographicProcess("_aaa"); // Act int count = entry.Retrieve(false); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aaa", entry.ID); Assert.IsNull(entry.Name); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }
public void RetrieveBasicInformationTest_withInvalidID_BasicInfoOnly() { // Arrange CinematographicProcess entry = new CinematographicProcess("_aaa"); // Act int count = entry.RetrieveBasicInformation(true); // Assert Assert.AreEqual(0, count); Assert.AreEqual("_aaa", entry.ID); Assert.IsNull(entry.Name); Assert.IsNull(entry.Details); Assert.IsNull(entry.Status); Assert.IsNull(entry.LastUpdated); }