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); }
public void EqualsReturnsFalseForPolicyNonMatches(UserSecurityPolicy first, UserSecurityPolicy second) { // Act & Assert Assert.False(first.Equals(second)); }
public void EqualsReturnsTrueForPolicyMatches(UserSecurityPolicy first, UserSecurityPolicy second) { // Act & Assert Assert.True(first.Equals(second)); }