public void EnumValues_ToString_EnumValue_Equals() { //Arrange const Codefondo.DDD.Kernel.Tests.Values.TestEnum origEnum = TestEnum.enum1; var value = EnumValue.FromEnum(origEnum); //Assert Assert.AreEqual(origEnum.ToString(), value.ToString()); }
public void EnumValues_Equals_DifferentValues_False() { //Arrange var value1 = EnumValue.FromEnum(TestEnum.enum1); var value2 = EnumValue.FromEnum(TestEnum.enum2); //Act var result = value1.Equals(value2); //Assert Assert.IsFalse(result); }
public void EnumValues_InequalOperator_EqualParameters_False() { //Arrange var value1 = EnumValue.FromEnum(TestEnum.enum1); var value2 = EnumValue.FromEnum(TestEnum.enum1); //Act var result = value1 != value2; //Assert Assert.IsFalse(result); }
public void EnumValues_Equals_EqualValues_True() { //Arrange var value1 = EnumValue.FromEnum(TestEnum.enum1); var value2 = EnumValue.FromEnum(TestEnum.enum1); //Act var result = value1.Equals(value2); //Assert Assert.IsTrue(result); }