public void Public_static_EnumObject_FromValue_passed_invalid_value() { // Arrange + Act var sut = SutEnumObject.FromValue(999); // Assert Assert.IsTrue(sut.HasNoValue); }
public void Public_static_EnumObject_FromValue_passed_valid_value_Mercedes() { // Arrange + Act var sut = SutEnumObject.FromValue(3); // Assert Assert.IsTrue(sut.HasValue); Assert.AreEqual(SutEnumObject.Mercedes, sut.Value); }