public void ValidateGuidToBeNull()
        {
            // Given
            var validator = new NullableGuidValidator(null);

            // When
            validator.Be(null);

            // Then
            Assert.True(true);
        }
        public void ValidateGuidToBeEmpty()
        {
            // Given
            var validator = new NullableGuidValidator(Guid.Empty);

            // When
            validator.BeEmpty();

            // Then
            Assert.True(true);
        }
        public void ValidateNullableToBeNullWithReasonViolated()
        {
            // Given
            var validator = new NullableGuidValidator(Guid.Empty);

            // 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 \"{Guid.Empty}\"{rn}but was expected to be null{rn}because that's the bottom line",
                exception.UserMessage);
        }
        public void ValidateGuidToBeEmptyViolated()
        {
            // Given
            var guid      = Guid.NewGuid();
            var validator = new NullableGuidValidator(guid);

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

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

            Assert.Equal(
                $"{rn}validator{rn}is \"{guid}\"{rn}but was expected to be empty{rn}because that's the bottom line",
                exception.UserMessage);
        }