public void ReturnExcp() { Assert.Throws <ArgumentException>(() => UtilService.GetEnumByName <DayTime>("test")); }
public void Excp2() { Assert.Throws <ArgumentException>(() => UtilService.GetEnumByName <int>("test")); }
public void Calculate_DuplicatedValues_ReturnDistinct() { var response = UtilService.GetEnumByName <DayTime>("morning"); Assert.Equal(DayTime.morning, response); }