Example #1
0
        public void GetHashCode_Should_ReturnExpectedResult_When_EncryptionDataIsNull()
        {
            // Arrange
            EncryptionData encrypt = new EncryptionData();

            // Act
            var actual = encrypt.GetHashCode();

            // Assert
            Assert.True(actual == 0);
        }
Example #2
0
        public void GetHashCode_Should_ReturnExpectedResult()
        {
            // Arrange
            var encrypt = new EncryptionData("password");

            // Act
            var actual = encrypt.GetHashCode();

            // Assert
            Assert.True(actual == 4548);
        }