public void CanSetFile() { var file = new File { ContentType = "application/png", FileName = "image.png", Url = "http://image.com/image.png" }; var assetDetail = new AssetDetails { File = file }; Assert.AreSame(file, assetDetail.File); }
public void TestCanSetFileName() { var file = new File {FileName = "file.txt"}; Assert.AreEqual("file.txt", file.FileName); }
public void TestCanSetUrl() { var file = new File() {Url = "http://www.text.com"}; Assert.AreEqual("http://www.text.com", file.Url); }
public void TestCanSetDetails() { var details = new {TestProperty = "SampleValue"}; var file = new File {Details = details}; Assert.AreEqual(details, file.Details); }
public void TestCanSetContentType() { var file = new File {ContentType = "image/png"}; Assert.AreEqual("image/png", file.ContentType); }