public void SetUnitByName_By_String_Name_Sets_Units(string shorthandUnitName, double expectedResult) { cUnitWork unitWork = new cUnitWork(); Assert.That(unitWork.Unit, Is.EqualTo(cUnitWork.eUnit.Joule)); // Method Under Test unitWork.SetUnitByName(shorthandUnitName); Assert.That(unitWork.Unit, Is.EqualTo((cUnitWork.eUnit)expectedResult)); }