Microsoft.WindowsAzure.MediaServices.Client.Tests.AssetTests.ShouldCreateAssetWithSingleFile C# (CSharp) Method

ShouldCreateAssetWithSingleFile() private method

private ShouldCreateAssetWithSingleFile ( ) : void
return void
        public void ShouldCreateAssetWithSingleFile()
        {
            string assetFilePath = @"Content\SmallMP41.mp4";

            //In this case isPrimary is not set in the asset by passing false to CreateAsset.
            IAsset asset = CreateAsset(_mediaContext, Path.GetFullPath(assetFilePath), AssetCreationOptions.None,false);

            Assert.AreEqual(AssetState.Initialized, asset.State);
            Assert.AreEqual(1, asset.AssetFiles.Count());
            Assert.AreEqual(1, asset.Locators.Count);

            IAssetFile assetFile = asset.AssetFiles.Single();
            Assert.AreNotEqual(asset.AssetType,AssetType.Unknown);
            Assert.AreEqual(Path.GetFileName(assetFilePath), assetFile.Name);
        }
AssetTests