public void Public_static_EnumObject_FromName_passed_invalid_name() { // Arrange + Act var sut = SutEnumObject.FromName("XXX"); // Assert Assert.IsTrue(sut.HasNoValue); }
public void Public_static_EnumObject_FromName_passed_valid_name_Audi() { // Arrange + Act var sut = SutEnumObject.FromName("Audi"); // Assert Assert.IsTrue(sut.HasValue); Assert.AreEqual(SutEnumObject.Audi, sut.Value); }