public void EqualsShouldReturnTrueWhenReferencesAreEqual() { var table = new SettingsTable <string, string>(); var otherTable = table; Assert.True(table.Equals(otherTable)); }
public void EqualsShouldReturnTrueWhenAllVersionsAreEqualInTwoTables() { var version = new SettingsTableVersion <string, string>(); var table = new SettingsTable <string, string>(); var otherTable = new SettingsTable <string, string>(); table.AddVersion(version); otherTable.AddVersion(version); Assert.True(table.Equals(otherTable)); }
public void EqualsShouldReturnFalseWhenTypesAreNotEqual() { var table = new SettingsTable <string, string>(); Assert.False(table.Equals(new object())); }
public void EqualsShouldReturnFalseWhenComparingToNull() { var table = new SettingsTable <string, string>(); Assert.False(table.Equals(null)); }