<commit_before>﻿using System;

namespace TestFirst.Net.Matcher
{
    public static class AGuid
    {
        public static IMatcher<Guid?> EqualTo(Guid? expect)
        {
            return Matchers.Function((Guid? actual) =>
                {
                    if (expect == null && actual == null)
                    {
                        return true;
                    }
                    if (expect != null)
                    {
                        return expect.Equals(actual);
                    }
                    return false;
                },
                "a Guid == '" + expect + "'"
             );
        }

        public static IMatcher<Guid?> NotEqualTo(Guid? expect)
        {
            return Matchers.Function((Guid? actual) =>
                {
                    if (expect == null && actual == null)
                    {
                        return false;
                    }
                    if (actual == null)
                    {
                        return true;
                    }
                    if (expect != null)
                    {
                        return !expect.Equals(actual);
                    }                
                    return false;
                },
                "a Guid = '" + expect + "'"
             );
        }

        public static IMatcher<Guid?> NotEmpty()
        {
            return Matchers.Function((Guid? actual) =><commit_msg>use an y.Equals(x) comparison vs an instance chack in AGuid.Equals<commit_after>﻿using System;

namespace TestFirst.Net.Matcher
{
    public static class AGuid
    {
        public static IMatcher<Guid?> EqualTo(Guid? expect)
        {
            return Matchers.Function((Guid? actual) =>
                {
                    if (expect == null && actual == null)
                    {
                        return true;
                    }
                    if (expect == null || actual == null)
                    {
                        return false;
                    }
                    return expect.Value.Equals(actual.Value);
                },
                "a Guid == '" + expect + "'"
             );
        }

        public static IMatcher<Guid?> NotEqualTo(Guid? expect)
        {
            return Matchers.Function((Guid? actual) =>
                {
                    if (expect == null && actual == null)
                    {
                        return false;
                    }
                    if (expect == null || actual == null)
                    {
                        return true;
                    }
                    return !expect.Value.Equals(actual.Value);
                },
                "a Guid = '" + expect + "'"
             );
        }

        public static IMatcher<Guid?> NotEmpty()
        {
            return Matchers.Function((Guid? actual) =>
{'fraction_non_alphanumeric': 0.09518864659051575, 'fraction_numerical': 0.0, 'mean_word_length': 0.833756345177665, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1052754', 'n_tokens_mistral': 669, 'n_tokens_neox': 608, 'n_words': 148}