public void Equality_Params_Null() { var cmd1 = new DbCommandDescriptor("a", null); var cmd2 = new DbCommandDescriptor("a", null); Assert.Equal(cmd1.GetHashCode(), cmd2.GetHashCode()); }
public void Equality_Params() { var cmd1 = new DbCommandDescriptor("a", 1, 2, 3); var cmd2 = new DbCommandDescriptor("a", 1, 2, 3); Assert.Equal(cmd1.GetHashCode(), cmd2.GetHashCode()); Assert.Equal(cmd1, 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)); }