public void True_for_nullable_boolean_returns_true() { bool?expected = true; var actual = BindingResult.True <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>()); }