public void False_for_nullable_boolean_returns_false() { bool?expected = false; var actual = BindingResult.False <bool?>(); AssertSome(expected, actual); }
public void True_and_false_for_non_boolean_type_throws() { // We are not concerned with the exact exception type, only that it throws. Assert.ThrowsAny <Exception>(() => BindingResult.True <int>()); Assert.ThrowsAny <Exception>(() => BindingResult.False <long>()); }