コード例 #1
0
        public void Inequality_SqlOnly()
        {
            var cmd1 = new DbCommandDescriptor("a");
            var cmd2 = new DbCommandDescriptor("b");

            Assert.NotEqual(cmd1, cmd2);
            Assert.False(cmd1.Equals((object)cmd2));
        }
コード例 #2
0
        public void Inequality_SqlOnly()
        {
            var cmd1 = new DbCommandDescriptor("a");
            var cmd2 = new DbCommandDescriptor("b");

            Assert.NotEqual(cmd1, cmd2);
            Assert.False(cmd1.Equals((object)cmd2));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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));
        }