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.

OperateResultTest.cs 570 B

8 jaren geleden
8 jaren geleden
8 jaren geleden
7 jaren geleden
8 jaren geleden
7 jaren geleden
8 jaren geleden
8 jaren geleden
1234567891011121314151617181920212223242526
  1. using System.Linq;
  2. using Xunit;
  3. namespace DotNetCore.CAP.Test
  4. {
  5. public class OperateResultTest
  6. {
  7. [Fact]
  8. public void VerifyDefaultConstructor()
  9. {
  10. var result = new OperateResult();
  11. Assert.False(result.Succeeded);
  12. Assert.Equal(0, result.Errors.Count());
  13. }
  14. [Fact]
  15. public void NullFaildUsesEmptyErrors()
  16. {
  17. var result = OperateResult.Failed();
  18. Assert.False(result.Succeeded);
  19. Assert.Equal(0, result.Errors.Count());
  20. }
  21. }
  22. }