public void GetAttribute_InvalidAttribute() { var inspector = new Revolver.Core.ItemInspector(_testTreeRoot); var result = inspector.GetItemAttribute("blah"); Assert.That(result, Is.Null); }
public void GetAttribute_LeadingAt() { var inspector = new Revolver.Core.ItemInspector(_testTreeRoot); var result = inspector.GetItemAttribute("@@key"); Assert.That(result, Is.EqualTo(_testTreeRoot.Key)); }
public void GetAttribute_Version() { var inspector = new Revolver.Core.ItemInspector(_testTreeRoot); var result = inspector.GetItemAttribute("version"); Assert.That(result, Is.EqualTo(_testTreeRoot.Version.ToString())); }
public void GetAttribute_MixedCaseAttribute() { var inspector = new Revolver.Core.ItemInspector(_testTreeRoot); var result = inspector.GetItemAttribute("TemplateId"); Assert.That(result, Is.EqualTo(_testTreeRoot.TemplateID.ToString())); }
public void GetAttribute_Name() { var inspector = new Revolver.Core.ItemInspector(_testTreeRoot); var result = inspector.GetItemAttribute("name"); Assert.That(result, Is.EqualTo(_testTreeRoot.Name)); }