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

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

            Assert.False(obj.Equals(comparand));
        }
        public void ctor_Guid()
        {
            var expected = Guid.NewGuid();
            var actual   = new EnlistmentIdentity(expected).ResourceManager;

            Assert.Equal(expected, actual);
        }
        public void opEquality_EnlistmentIdentity_EnlistmentIdentity()
        {
            var obj       = new EnlistmentIdentity(Guid.NewGuid());
            var comparand = new EnlistmentIdentity(Guid.NewGuid());

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

            Assert.False(obj.Equals(comparand));
        }
Ejemplo n.º 6
0
        public void opInequality_EnlistmentIdentity_EnlistmentIdentity()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());
            var comparand = new EnlistmentIdentity(Guid.NewGuid());

            Assert.True(obj != comparand);
        }
Ejemplo n.º 7
0
        public void opEquality_EnlistmentIdentity_EnlistmentIdentity()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());
            var comparand = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj == comparand);
        }
Ejemplo n.º 8
0
        public void ctor_Guid()
        {
            var expected = Guid.NewGuid();
            var actual = new EnlistmentIdentity(expected).ResourceManager;

            Assert.Equal(expected, actual);
        }
        public void op_Equals_whenSame()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

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

            // ReSharper restore EqualExpressionComparison
        }
Ejemplo n.º 10
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_GetHashCode()
        {
            var actual = new EnlistmentIdentity(Guid.NewGuid()).GetHashCode();

            Assert.NotEqual(0, actual);
        }
        public void op_Equals_whenDifferentType()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(new object()));
        }
Ejemplo n.º 13
0
        public void op_GetHashCode()
        {
            var actual = new EnlistmentIdentity(Guid.NewGuid()).GetHashCode();

            Assert.NotEqual(0, actual);
        }
Ejemplo n.º 14
0
        public void op_Equals_whenDifferentType()
        {
            var obj = new EnlistmentIdentity(Guid.NewGuid());

            Assert.False(obj.Equals(new object()));
        }
Ejemplo n.º 15
0
 public Operation(Guid resourceManager)
     : this()
 {
     Trace.WriteIf(Tracing.Is.TraceVerbose, "resourceManager={0}".FormatWith(resourceManager));
     Identity = new EnlistmentIdentity(resourceManager);
 }
Ejemplo n.º 16
0
 public Operation(Guid resourceManager)
     : this()
 {
     Trace.WriteIf(Tracing.Is.TraceVerbose, "resourceManager={0}".FormatWith(resourceManager));
     Identity = new EnlistmentIdentity(resourceManager);
 }