public void ShouldThrow_Pro_Should_ThrowBy() { OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.Dev, true).ShouldFalse(); OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.Dev, false).ShouldTrue(); OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.Pro, true).ShouldTrue(); OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.Pro, false).ShouldFalse(); }
public void ShouldThrow_None_Should_Throw() { OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.None, true).ShouldTrue(); OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.None, false).ShouldTrue(); }
public void ShouldThrow_All_Should_NotThrow() { OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.All, true).ShouldFalse(); OptionsCheck.ShouldJsonThrow(MyExceptionHandleJsonOptions.All, false).ShouldFalse(); }