public void Inequality_SqlOnly() { var cmd1 = new DbCommandDescriptor("a"); var cmd2 = new DbCommandDescriptor("b"); Assert.NotEqual(cmd1, cmd2); Assert.False(cmd1.Equals((object)cmd2)); }
public void Equality_SqlOnly() { var cmd1 = new DbCommandDescriptor("a"); var cmd2 = new DbCommandDescriptor("a"); Assert.Equal(cmd1.GetHashCode(), cmd2.GetHashCode()); Assert.Equal(cmd1, cmd2); Assert.True(cmd1.Equals((object)cmd2)); }