public void IsValidReturnsFalseWithNullValueTest()
        {
            var sut = new RequireBooleanAttribute();

            var actual = sut.IsValid(null);

            actual.Should().BeFalse();
        }
        public void IsValidReturnsExpectedValueTest(bool expected)
        {
            var sut = new RequireBooleanAttribute();

            var actual = sut.IsValid(expected);

            actual.Should().Be(expected);
        }
        public void IsValidReturnsFalseWithIncorrectValueTypeTest()
        {
            var sut = new RequireBooleanAttribute();

            var actual = sut.IsValid(Guid.NewGuid());

            actual.Should().BeFalse();
        }
        public void FormatMessageIncludesFieldNameTest()
        {
            var name = Guid.NewGuid().ToString();

            var sut = new RequireBooleanAttribute();

            var actual = sut.FormatErrorMessage(name);

            actual.Should().Contain(name);
        }