Browse Source

CmsKit - Update Content tests

pull/6926/head
enisn 6 years ago
parent
commit
4c18d77f80
  1. 4
      modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs

4
modules/cms-kit/test/Volo.CmsKit.Application.Tests/Contents/ContentAdminAppService_Tests.cs

@ -118,11 +118,11 @@ namespace Volo.CmsKit.Contents
} }
[Fact] [Fact]
public async Task ShouldThrowEntityNotFoundExceptionWhileDeletingAlreadyDeletedAsync() public async Task ShouldNotThrowEntityNotFoundExceptionWhileDeletingAlreadyDeletedAsync()
{ {
await _service.DeleteAsync(_data.Content_2_Id); await _service.DeleteAsync(_data.Content_2_Id);
Should.ThrowAsync<EntityNotFoundException>(async () => await Should.NotThrowAsync(async () =>
await _service.DeleteAsync(_data.Content_2_Id)); await _service.DeleteAsync(_data.Content_2_Id));
} }
} }

Loading…
Cancel
Save