public void constructor_should_initialize_instance() { var secureString = new SecureString(); var result = new DecryptedSecureString(secureString); result._chars().Should().BeNull(); result._charsHandle().IsAllocated.Should().BeFalse(); result._charsIntPtr().Should().Be(IntPtr.Zero); result._disposed().Should().BeFalse(); result._secureString().Should().BeSameAs(secureString); result._utf8Bytes().Should().BeNull(); result._utf8BytesHandle().IsAllocated.Should().BeFalse(); }