예제 #1
0
 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);
 }
예제 #2
0
 public void TestCanSetFileName()
 {
     var file = new File {FileName = "file.txt"};
     Assert.AreEqual("file.txt", file.FileName);
 }
예제 #3
0
 public void TestCanSetUrl()
 {
     var file = new File() {Url = "http://www.text.com"};
     Assert.AreEqual("http://www.text.com", file.Url);
 }
예제 #4
0
 public void TestCanSetDetails()
 {
     var details = new {TestProperty = "SampleValue"};
     var file = new File {Details = details};
     Assert.AreEqual(details, file.Details);
 }
예제 #5
0
 public void TestCanSetContentType()
 {
     var file = new File {ContentType = "image/png"};
     Assert.AreEqual("image/png", file.ContentType);
 }