public void ShouldUpdateAssetNameAndAlternateId()
{
string fileName = @"Content\interview.wmv";
IAsset asset = CreateAsset(_mediaContext, Path.GetFullPath(fileName), AssetCreationOptions.CommonEncryptionProtected);
Assert.IsNull(asset.AlternateId);
string newAssetName = "New Asset Name";
string alternateId = Guid.NewGuid().ToString();
asset.Name = newAssetName;
asset.AlternateId = alternateId;
asset.Update();
CloudMediaContext newContext = WindowsAzureMediaServicesTestConfiguration.CreateCloudMediaContext();
IAsset retrievedAsset = newContext.Assets.Where(a => a.Id == asset.Id).Single();
Assert.AreEqual(newAssetName, retrievedAsset.Name);
Assert.AreEqual(alternateId, retrievedAsset.AlternateId);
}