public static void Equals_Object_DifferentType_ReturnsFalse() { var catalogueItemId = new CatalogueItemId(1, "1"); var obj = new { SupplierId = 1, ItemId = 1 }; var result = catalogueItemId.Equals(obj); result.Should().BeFalse(); }
public static void Equals_Object_ReturnsExpectedResult( int supplierId1, string itemId1, int supplierId2, string itemId2, bool expectedResult) { var catalogueItemId1 = new CatalogueItemId(supplierId1, itemId1); object catalogueItemId2 = new CatalogueItemId(supplierId2, itemId2); var result = catalogueItemId1.Equals(catalogueItemId2); result.Should().Be(expectedResult); }