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.
 
 
 
 
 

25 lines
831 B

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Squidex.Infrastructure.Tasks;
namespace Squidex.Infrastructure;
public class TaskExtensionsTests
{
[Fact]
public void Should_do_nothing_on_forget()
{
var task = Task.FromResult(123);
task.Forget();
#pragma warning disable xUnit1031 // Do not use blocking task operations in test method
Assert.Equal(123, task.Result);
#pragma warning restore xUnit1031 // Do not use blocking task operations in test method
}
}