Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
1.1 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Xunit;
namespace Squidex.Infrastructure.Assets
{
[Trait("Category", "Dependencies")]
public class MongoGridFsAssetStoreTests : AssetStoreTests<MongoGridFsAssetStore>, IClassFixture<MongoGridFSAssetStoreFixture>
{
private readonly MongoGridFSAssetStoreFixture fixture;
public MongoGridFsAssetStoreTests(MongoGridFSAssetStoreFixture fixture)
{
this.fixture = fixture;
}
public override MongoGridFsAssetStore CreateStore()
{
return fixture.AssetStore;
}
[Fact]
public void Should_not_calculate_source_url()
{
var url = Sut.GeneratePublicUrl(FileName);
Assert.Null(url);
}
}
}