public void BeRetrievedProperly() { WearableItem wearableItem = new WearableItem { hides = new [] { "category1", "category2", "category3" } }; var hides = wearableItem.GetHidesList(null); Assert.AreEqual("category1", hides[0]); Assert.AreEqual("category2", hides[1]); Assert.AreEqual("category3", hides[2]); }
public void BeRetrievedWhenBodyShapeDoesntMatchOverride() { WearableItem wearableItem = new WearableItem { hides = new [] { "category1", "category2", "category3" }, representations = new [] { new WearableItem.Representation() { bodyShapes = new [] { "bodyShape1" }, overrideHides = new [] { "override1", "override2", "override3" }, } } }; var hides = wearableItem.GetHidesList("not_bodyShape1"); Assert.AreEqual("category1", hides[0]); Assert.AreEqual("category2", hides[1]); Assert.AreEqual("category3", hides[2]); }
public void BeRetrievedProperly() { WearableItem wearableItem = new WearableItem { data = new WearableItem.Data() { hides = new [] { "category1", "category2", "category3" }, representations = new [] { new WearableItem.Representation() { bodyShapes = new [] { "bodyShape1" }, overrideHides = new [] { "override1", "override2", "override3" }, } } } }; var hides = wearableItem.GetHidesList("bodyShape1"); Assert.AreEqual("override1", hides[0]); Assert.AreEqual("override2", hides[1]); Assert.AreEqual("override3", hides[2]); }