Exemplo n.º 1
0
        public void CtorWithPolicyCopiesProperties()
        {
            // Arrange
            var policy = new UserSecurityPolicy("A", "B", "C");

            // Act
            var copy = new UserSecurityPolicy(policy);

            // Assert
            Assert.Equal(policy.Name, copy.Name);
            Assert.Equal(policy.Subscription, copy.Subscription);
            Assert.Equal(policy.Value, copy.Value);
        }
Exemplo n.º 2
0
 public void EqualsReturnsFalseForPolicyNonMatches(UserSecurityPolicy first, UserSecurityPolicy second)
 {
     // Act & Assert
     Assert.False(first.Equals(second));
 }
Exemplo n.º 3
0
 public void EqualsReturnsTrueForPolicyMatches(UserSecurityPolicy first, UserSecurityPolicy second)
 {
     // Act & Assert
     Assert.True(first.Equals(second));
 }