public void ValidateNullableFloatToBeNull()
        {
            // Given
            var validator = new NullableFloatValidator(null);

            // When
            validator.BeNull();

            // Then
            Assert.True(true);
        }
        public void ValidateNullableToBeNullWithReasonViolated()
        {
            // Given
            var validator = new NullableFloatValidator(0);

            // When
            var exception = Assert.Throws <XunitException>(() => validator.BeNull("that's the bottom line"));

            // Then
            Assert.NotNull(exception);
            var rn = Environment.NewLine;

            Assert.Equal(
                $"{rn}validator{rn}is \"0\"{rn}but was expected to be null{rn}because that's the bottom line",
                exception.UserMessage);
        }
        public void ValidateNullableFloatToBeNullViolated()
        {
            // Given
            var validator = new NullableFloatValidator(0);

            // When
            var exception = Assert.Throws <XunitException>(() => validator.BeNull());

            // Then
            Assert.NotNull(exception);
            var rn = Environment.NewLine;

            Assert.Equal(
                $"{rn}validator{rn}is \"0\"{rn}but was expected to be null",
                exception.UserMessage);
        }