public void Equals_Second_Null_Returns_False() { var options1 = new SessionAffinityOptions { Enabled = true, FailurePolicy = "policy1", Mode = "mode1" }; var equals = options1.Equals(null); Assert.False(equals); }
public void Equals_Different_Value_Returns_False() { var options1 = new SessionAffinityOptions { Enabled = true, FailurePolicy = "policy1", Mode = "mode1" }; var options2 = new SessionAffinityOptions { Enabled = false, FailurePolicy = "policy2", Mode = "mode2" }; var equals = options1.Equals(options2); Assert.False(equals); }
public void Equals_Same_Value_Returns_True() { var options1 = new SessionAffinityOptions { Enabled = true, FailurePolicy = "policy1", Mode = "mode1" }; var options2 = new SessionAffinityOptions { Enabled = true, FailurePolicy = "policy1", Mode = "mode1" }; var equals = options1.Equals(options2); Assert.True(equals); }