public void op_Equals()
        {
            var obj       = new EnlistmentIdentity(Guid.NewGuid());
            var comparand = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(comparand));
        }
Exemplo n.º 2
0
        public void op_Equals()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());
            var comparand = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(comparand));
        }
        public void op_Equals_whenSame()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            // ReSharper disable EqualExpressionComparison
            Assert.True(obj.Equals(obj));

            // ReSharper restore EqualExpressionComparison
        }
Exemplo n.º 4
0
        public void op_Equals_whenSame()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            // ReSharper disable EqualExpressionComparison
            Assert.True(obj.Equals(obj));

            // ReSharper restore EqualExpressionComparison
        }
        public void op_Equals_whenDifferentType()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(new object()));
        }
Exemplo n.º 6
0
        public void op_Equals_whenDifferentType()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(new object()));
        }