Ejemplo n.º 1
0
        public void Equals()
        {
            tlog.Debug(tag, $"Equals START");

            var testingTarget = new TypeConverterAttribute("string");

            Assert.IsNotNull(testingTarget, "Can't create success object TypeConverterAttribute.");

            var testingTarget2 = new TypeConverterAttribute("int");

            Assert.False(testingTarget.Equals(testingTarget2), "Should be equal");
            Assert.False(testingTarget.Equals(null), "Should be equal");

            tlog.Debug(tag, $"Equals END");
        }
 public void Equal_Invoke_ReturnsExpected(TypeConverterAttribute attribute, object other, bool expected)
 {
     Assert.Equal(expected, attribute.Equals(other));
 }