Resources are a little trickier than that. They work differently for some classes, and some classes have more than one. Try this:
Code:
var acd = Enigma.D3.Helpers.ActorCommonDataHelper.GetLocalAcd();
var modifier = (int) Enigma.D3.Helpers.AttributeHelper.GetAttributeValue(acd, Enigma.D3.Enums.AttributeId.ResourceTypePrimary);
var rCur = Enigma.D3.Helpers.AttributeHelper.GetAttributeValue(acd, Enigma.D3.Enums.AttributeId.ResourceCur, modifier);
var rMax = Enigma.D3.Helpers.AttributeHelper.GetAttributeValue(acd, Enigma.D3.Enums.AttributeId.ResourceMaxTotal, modifier);
Console.WriteLine(rCur + "/" + rMax);