public void EntityBases_have_empty_name(NamedBase entityBase) { // ACT var result = entityBase.Name; // ASSERT Assert.Equal(string.Empty, result); }
public void EntityBases_are_equal_if_Id_are_equal_and_Type(NamedBase refEntity, NamedBase sameId, NamedBase differentId, NamedBase differentType) { // ACT & ASSERT Assert.Equal(refEntity, refEntity); Assert.Equal(refEntity.GetHashCode(), refEntity.GetHashCode()); Assert.Equal(refEntity, sameId); Assert.Equal(refEntity.GetHashCode(), sameId.GetHashCode()); Assert.NotEqual(refEntity, differentId); Assert.NotEqual(refEntity.GetHashCode(), differentId.GetHashCode()); Assert.NotEqual(refEntity, differentType); Assert.NotEqual(refEntity.GetHashCode(), differentType.GetHashCode()); }