public void Equals_ReturnsFalse_IfObjectTypeDoesNotMatch(object other)
        {
            var classUnderTest = new AddInSettings(string.Empty, string.Empty,
                                                   string.Empty, string.Empty, It.IsAny <MattermostVersion>());

            var result = classUnderTest.Equals(other);

            result.Should().BeFalse();
        }
        public void Equals_ReturnsTrue_IfReferenceEqual()
        {
            var classUnderTest = new AddInSettings(string.Empty, string.Empty,
                                                   string.Empty, string.Empty, It.IsAny <MattermostVersion>());

            var result = classUnderTest.Equals(classUnderTest);

            result.Should().BeTrue();
        }
        public void Equals_ChecksAllMembers(string urlModifier, string teamIdModifier,
                                            string usernameModifier, string channelMapModifier, bool expected)
        {
            const string            url        = "http://tempuri.org";
            const string            teamId     = "team id";
            const string            username   = "******";
            const string            channelMap = "channel map";
            const MattermostVersion version    = MattermostVersion.ApiVersionOne;
            var otherSettings = new AddInSettings(url + urlModifier, teamId + teamIdModifier,
                                                  username + usernameModifier, channelMap + channelMapModifier, version);
            var classUnderTest = new AddInSettings(url, teamId, username, channelMap, version);

            var result = classUnderTest.Equals(otherSettings);

            result.Should().Be(expected);
        }