public void Equals_Both_Null_Returns_True() { // Arrange // Act var equals = LoadBalancingOptions.Equals(null, null); // Assert Assert.True(equals); }
public void Equals_Second_Null_Returns_False() { var options1 = new LoadBalancingOptions { Mode = LoadBalancingMode.First }; var equals = LoadBalancingOptions.Equals(options1, null); Assert.False(equals); }
public void Equals_First_Null_Returns_False() { var options2 = new LoadBalancingOptions { Mode = LoadBalancingMode.PowerOfTwoChoices }; var equals = LoadBalancingOptions.Equals(null, options2); Assert.False(equals); }
public void Equals_Different_Value_Returns_False() { var options1 = new LoadBalancingOptions { Mode = LoadBalancingMode.First }; var options2 = new LoadBalancingOptions { Mode = LoadBalancingMode.PowerOfTwoChoices }; var equals = LoadBalancingOptions.Equals(options1, options2); Assert.False(equals); }
public void Equals_Same_Value_Returns_True() { var options1 = new LoadBalancingOptions { Mode = LoadBalancingMode.First }; var options2 = new LoadBalancingOptions { Mode = LoadBalancingMode.First }; var equals = LoadBalancingOptions.Equals(options1, options2); Assert.True(equals); }
public void Equals_Both_Null_Returns_True() { var equals = LoadBalancingOptions.Equals(null, null); Assert.True(equals); }