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 548 B

8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
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.Empty(result.Errors);
  13. }
  14. [Fact]
  15. public void NullFaildUsesEmptyErrors()
  16. {
  17. var result = OperateResult.Failed();
  18. Assert.False(result.Succeeded);
  19. Assert.Empty(result.Errors);
  20. }
  21. }
  22. }