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.
 
 
 

24 lines
555 B

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