コード例 #1
0
        public static void Equals_DifferentType_ReturnsFalse()
        {
            var recipient     = new ServiceRecipient("ODS", null);
            var anonRecipient = new
            {
                recipient.OdsCode,
            };

            var isEqual = recipient.Equals(anonRecipient);

            isEqual.Should().BeFalse();
        }
コード例 #2
0
        public static void Equals_ReturnsExpectedResult(ServiceRecipient a, ServiceRecipient b, bool expectedResult)
        {
            var isEqual = a.Equals(b);

            isEqual.Should().Be(expectedResult);
        }