public void ReturnsValue() { var value = Guid.NewGuid().ToString(); var actual = new SharedSecretEncryptionKey(value).ToString(); actual.Should().Be(value); }
public void IsImplicitlyConvertibleFromString() { var value = Guid.NewGuid().ToString(); var str = value; SharedSecretEncryptionKey actual = str; var expected = new SharedSecretEncryptionKey(value); actual.Should().Be(expected); }
public void DefaultConstructor_CreatesEmptySharedSecretEncryptionKey() { var actual = new SharedSecretEncryptionKey(); actual.Should().Be(SharedSecretEncryptionKey.Empty); }
public void NullValue_ReturnsEmptySharedSecretEncryptionKey() { var actual = new SharedSecretEncryptionKey(null); actual.Should().Be(SharedSecretEncryptionKey.Empty); }