public bool Equals(SerializableString other)
 {
     if (ReferenceEquals(null, other))
     {
         return false;
     }
     return ReferenceEquals(this, other) || Equals(other.String, String);
 }
 public bool Equals(SerializableString other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) || Equals(other.String, String));
 }
Beispiel #3
0
        public void AllTest()
        {
            var encoding = new SerializableString <Encoding>(Encoding.UTF8);

            Assert.NotEmpty(encoding.Value);

            var rawEncoding = encoding.Value;

            encoding.ChangeSource(Encoding.ASCII);
            Assert.NotEmpty(encoding.Value);

            Assert.NotEqual(rawEncoding, encoding.Value);
        }