public void Ctor_WhenCalled_SetsProperties()
        {
            // arrange, act
            var sut = new ParameterNameCommandParameter("par");

            // assert
            Assert.Equal("par", sut.ParameterName);
        }
        public void ToString_WhenCalled_ReturnsParameterName()
        {
            // arrange
            var sut = new ParameterNameCommandParameter("par");

            // act
            var result = sut.ToString();

            // assert
            Assert.Equal("-par", result);
        }
        public void Equals_ParameterNamesAreDifferent_ReturnsFalse()
        {
            // arrange
            var sut1 = new ParameterNameCommandParameter("par1");
            var sut2 = new ParameterNameCommandParameter("par2");

            // act
            var result = sut1.Equals(sut2);

            // assert
            Assert.False(result);
        }
        public void Equals_ParameterNamesAreEqual_ReturnsTrue()
        {
            // arrange
            var sut1 = new ParameterNameCommandParameter("par");
            var sut2 = new ParameterNameCommandParameter("par");

            // act
            var result = sut1.Equals(sut2);

            // assert
            Assert.True(result);
        }
        public void GetHashCode_ParameterNamesAreNotEqual_ReturnsDifferentHashCodes()
        {
            // arrange
            var sut1 = new ParameterNameCommandParameter("par1");
            var sut2 = new ParameterNameCommandParameter("par2");

            // act
            var hashCode1 = sut1.GetHashCode();
            var hashCode2 = sut2.GetHashCode();

            // act, assert
            Assert.NotEqual(hashCode1, hashCode2);
        }
        public void GetHashCode_ParameterNamesAreEqual_ReturnsSameHashCode()
        {
            // arrange
            var sut1 = new ParameterNameCommandParameter("par");
            var sut2 = new ParameterNameCommandParameter("par");

            // act
            var hashCode1 = sut1.GetHashCode();
            var hashCode2 = sut2.GetHashCode();

            // assert
            Assert.Equal(hashCode1, hashCode2);
        }