/// <summary>
 /// Check if this instance is equal to another object that
 /// implements <see cref="IComponentMetaData"/>.
 /// </summary>
 /// <param name="other">
 /// The <see cref="IComponentMetaData"/> to check for equality
 /// </param>
 /// <returns>
 /// True if the two instances are equal.
 /// False otherwise
 /// </returns>
 public bool Equals(IComponentMetaData other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ComponentId.Equals(other.ComponentId));
 }
Exemple #2
0
        public void Equals_MatchOnLow_ReturnTrue(ulong low)
        {
            var component = new ComponentId(low, 0);

            var result = component.Equals(new ComponentId(low, 0));

            Assert.That(result, Is.True);
        }
        public void EqualsTest()
        {
            ComponentId target   = new ComponentId(); // TODO: 初始化为适当的值
            object      xObject  = null;              // TODO: 初始化为适当的值
            bool        expected = false;             // TODO: 初始化为适当的值
            bool        actual;

            actual = target.Equals(xObject);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
 public void EqualsTest()
 {
     ComponentId target = new ComponentId(); // TODO: 初始化为适当的值
     object xObject = null; // TODO: 初始化为适当的值
     bool expected = false; // TODO: 初始化为适当的值
     bool actual;
     actual = target.Equals( xObject );
     Assert.AreEqual( expected, actual );
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }