Exemplo n.º 1
0
        public void IsEqual_Ref_Object_Byte_Byte_True()
        {
            // arrange
            ExtendedType a = ExtendedType.FromType(typeof(byte), _cache);

            // act
            var result = a.Equals((object)a);

            // assert
            Assert.True(result);
        }
Exemplo n.º 2
0
        public void IsEqual_Object_Byte_Null_False()
        {
            // arrange
            ExtendedType a = ExtendedType.FromType(typeof(byte), _cache);

            // act
            var result = a.Equals(default(object));

            // assert
            Assert.False(result);
        }
Exemplo n.º 3
0
        public void IsEqual_Object_Byte_String_False()
        {
            // arrange
            ExtendedType a = ExtendedType.FromType(typeof(byte), _cache);
            ExtendedType b = ExtendedType.FromType(typeof(string), _cache);

            // act
            var result = a.Equals((object)b);

            // assert
            Assert.False(result);
        }
Exemplo n.º 4
0
        public void IsEqual_Byte_Byte_True()
        {
            // arrange
            ExtendedType a = ExtendedType.FromType(typeof(byte), _cache);
            ExtendedType b = ExtendedType.FromType(typeof(byte), _cache);

            // act
            var result = a.Equals(b);

            // assert
            Assert.True(result);
        }