Example #1
0
            public void ShouldReturnFalseWhenObjectIsNotEqual()
            {
                var first  = new ExifLong(ExifTag.SubIFDOffset);
                var second = new ExifLong(ExifTag.CodingMethods);

                Assert.False(first.Equals(second));
            }
Example #2
0
            public void ShouldReturnTrueWhenObjectIsEqual()
            {
                var first  = new ExifLong(ExifTag.SubIFDOffset);
                var second = new ExifLong(ExifTag.SubIFDOffset);

                Assert.True(first.Equals(second));
            }
Example #3
0
            public void ShouldReturnFalseWhenInstanceIsNotEqual()
            {
                var first  = new ExifLong(ExifTag.SubIFDOffset);
                var second = ExifTag.CodingMethods;

                Assert.IsFalse(first.Equals(second));
            }
Example #4
0
            public void ShouldReturnTrueWhenInstanceIsEqual()
            {
                var first  = new ExifLong(ExifTag.SubIFDOffset);
                var second = ExifTag.SubIFDOffset;

                Assert.IsTrue(first.Equals(second));
            }
Example #5
0
            public void ShouldReturnTrueWhenObjectIsTheSame()
            {
                var value = new ExifLong(ExifTag.SubIFDOffset);

                Assert.True(value.Equals(value));
            }
Example #6
0
            public void ShouldReturnFalseWhenInstanceIsNull()
            {
                var value = new ExifLong(ExifTag.SubIFDOffset);

                Assert.False(value.Equals(null));
            }