C# Class Rubberduck.UnitTesting.PermissiveAssertClass

Inheritance: AssertClass
Exibir arquivo Open project: retailcoder/Rubberduck

Public Methods

Method Description
AreEqual ( object expected, object actual, string message = null ) : void

Verifies that two specified objects are equal as considered equal under the loose terms of VBA equality. As such the assertion fails, if the objects are not equal, even after applying VBA Type promotions.

contrary to AssertClass.AreEqual expected and actual are not required to be of the same type

AreNotEqual ( object expected, object actual, string message = null ) : void

Private Methods

Method Description
RunTypePromotions ( object &expected, object &actual ) : bool

Runs applicable type promotions for number types.

Method Details

AreEqual() public method

Verifies that two specified objects are equal as considered equal under the loose terms of VBA equality. As such the assertion fails, if the objects are not equal, even after applying VBA Type promotions.
contrary to AssertClass.AreEqual expected and actual are not required to be of the same type
public AreEqual ( object expected, object actual, string message = null ) : void
expected object The expected value.
actual object The actual value.
message string An optional message to display if the assertion fails.
return void

AreNotEqual() public method

public AreNotEqual ( object expected, object actual, string message = null ) : void
expected object
actual object
message string
return void